Re: unable to unset reference

From: Date: Wed, 20 Feb 2008 01:00:45 +0000
Subject: Re: unable to unset reference
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-269668@lists.php.net to get a copy of this message
Hence my previous gibberish, I would expect a reference to be destroyed when the object is, but obviously it's not.
It has nothing specifically to do with objects, it's all about how references are handled. $ php -a Interactive mode enabled <?php $a = '12345'; $b = &$a; unset($a); var_dump($b); string(5) "12345" Sara Goleman will explain it much better than I can: http://blog.libssh2.org/index.php?/archives/51-Youre-being-lied-to..html ie - it's by design and will (probably) not change. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#269668) next »