#45416 [Opn->Bgs]: __wakeup is called reference twice
| From: | jani@php.net | Date: | Tue, 15 Jul 2008 01:59:36 +0000 |
| Subject: | #45416 [Opn->Bgs]: __wakeup is called reference twice | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-126729@lists.php.net to get a copy of this message | ||
ID: 45416
Updated by: jani@php.net
Reported By: tinozangerle at aol dot com
-Status: Open
+Status: Bogus
Bug Type: Class/Object related
Operating System: Linux
PHP Version: 5.2.6
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2008-07-09 20:22:08] tinozangerle at aol dot com
Ok, well I see.
When I serialize the referenced object it save the complete object.
On unserializing the object the referenced object will be wakeup.
Well, I'll add a sleep function with all variables and will delete the
refernced object.
Tino
------------------------------------------------------------------------
[2008-07-02 12:19:27] tinozangerle at aol dot com
Description:
------------
__wakeup is called twice, the same object
Reproduce code:
---------------
http://nopaste.php-quake.net/36927
Expected result:
----------------
2
object(a)#1 (2)
{ ["foo:private"]=>
int(1)
["bar:private"]=> string(5) "hello"
}
object(b)#2 (1)
{
["a:private"]=> &object(a)#1 (2)
{ ["foo:private"]=>int(1)
["bar:private"]=>string(5) "hello" }
}
hello
Actual result:
--------------
22
hello
object(a)#1 (2)
{ ["foo:private"]=>
int(1)
["bar:private"]=> string(5) "hello"
}
object(b)#2 (1)
{
["a:private"]=> &object(a)#1 (2)
{ ["foo:private"]=>int(1)
["bar:private"]=>string(5) "hello" }
}
hello
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45416&edit=1