Bug #14950 Updated: crash with __sleep() and __wakeup()
| From: | yohgaki@php.net | Date: | Thu, 07 Mar 2002 01:14:49 +0000 |
| Subject: | Bug #14950 Updated: crash with __sleep() and __wakeup() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-1844@lists.php.net to get a copy of this message | ||
ID: 14950
Updated by: yohgaki@php.net
Reported By: hellekin@php.net
-Status: Assigned
+Status: Analyzed
Bug Type: Session related
Operating System: Debian SID
PHP Version: 4.2.0-dev
Assigned To: yohgaki
Previous Comments:
------------------------------------------------------------------------
[2002-03-06 03:25:20] yohgaki@php.net
Version update
I just take a look at what is going on, __sleep and __wakeup is messed
badly. It does not work at all and even crashes...
------------------------------------------------------------------------
[2002-02-03 19:44:04] yohgaki@php.net
This will be next my target to fix :)
------------------------------------------------------------------------
[2002-01-09 10:38:21] hellekin@php.net
Forgot to tell : asking for .phps will show you the source in the
/test/session/ directory.
------------------------------------------------------------------------
[2002-01-09 10:36:08] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=14950&edit=1