From:             stefan dot textor at dsi-project dot de
Operating system: Windows 2000
PHP version:      5.0.0
PHP Bug Type:     Zend Engine 2 problem
Bug description:  php crashes while destroying a referenced object

Description:
------------
php crashes while setting a references object to null



Reproduce code:
---------------
class MyClass { 
    function __destruct() { 
        print "Destroying object"; 
    } 
} 
$test = new MyClass();
$test1 = $test;
$test = null;

Expected result:
----------------
object should be destroyed and both references should be null imho


-- 
Edit bug report at http://bugs.php.net/?id=29483&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29483&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29483&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29483&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29483&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29483&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29483&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29483&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29483&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29483&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29483&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29483&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29483&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29483&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29483&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29483&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29483&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29483&r=float

Reply via email to