|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-01-09 10:36 UTC] hellekin@php.net
Passing objects using the magic __sleep() and __wakeup() methods through sessions fail. In the best case the script fails without error. In the worst, an integer in session turns into the value of the PHP session ID and the object is not registered. Yasuo Ohgaki guesses it's a serialize/unserialize problem. Make log : /usr/src/web/php/php4/ext/standard/var_unserializer.re: In function `php_var_unserialize': /usr/src/web/php/php4/ext/standard/var_unserializer.re:304: warning: comparison is always false due to limited range of data type Tests : http://php.hellekin.com/test/session/ PHPInfo() : http://php.hellekin.com/info.php PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 05:00:01 2025 UTC |
Bug remains (Apache crash) SERVER_SOFTWARE: Apache/1.3.26 (Win32) PHP/4.2.3 OS: Win2000 Apache: 1.3.26 Sample Code: <?php class A { function A() {} function __sleep() {return;} } $a = new A(); $stream = serialize($a); ?>