|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-08-28 08:17 UTC] bernd@php.net
[2003-08-28 09:48 UTC] sniper@php.net
[2003-11-28 20:42 UTC] sniper@php.net
[2003-12-04 02:24 UTC] sniper@php.net
[2004-12-18 14:10 UTC] mikael at SPAMMENOTchl dot chalmers dot se
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 20:00:01 2025 UTC |
Description: ------------ Its mainly an internal problem... if i use zval_add_ref(&getThis()); in the __wakeup() method it will be ignored at all... after unserializing the refcount of my object is allways set to "1" :( its reproduceable even through this php-code: Reproduce code: --------------- <?php $a=array(); class x { function __wakeup() { global $a; $a[]=$this; } } $t=new x(); var_dump($t); $t=unserialize(serialize($t)); unset($a); var_dump($t); ?> Expected result: ---------------- object(x)#1 (0) { } object(x)#1 (0) { } Actual result: -------------- object(x)#1 (0) { } UNKNOWN:0 or: object(x)#1 (0) { } Fatal error: Trying to access invalid object in ... on line 15