From: [EMAIL PROTECTED] Operating system: linux PHP version: 5CVS-2003-08-27 (dev) PHP Bug Type: Session related Bug description: zvals refcount allways 1 after leavinf __wakeup()-method
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 -- Edit bug report at http://bugs.php.net/?id=25274&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25274&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25274&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25274&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25274&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25274&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25274&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25274&r=support Expected behavior: http://bugs.php.net/fix.php?id=25274&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25274&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25274&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25274&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25274&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25274&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25274&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25274&r=gnused