PHP 4.0 Bug #2692 Updated: clarification: unset and reference

From: Date: Sun, 14 Nov 1999 08:02:07 +0000
Subject: PHP 4.0 Bug #2692 Updated: clarification: unset and reference
Groups: php.dev 
Request: Send a blank email to php-dev+get-12483@lists.php.net to get a copy of this message
ID: 2692 Updated by: joey Reported By: php-bug@vogtner.de Status: Open Bug Type: Misbehaving function Assigned To: Comments: ${$v} should work for a dereference operator, right? If you compare the output of the script below with that of the original example above, you will see that "dereferencing" unset($v) is no longer breaking the reference... Moving to "Misbehaving function". unset() should not break ref. <? function sub (&$v) { unset (${$v}); $v = 66; } sub ($s); echo '<br>$s = '. $s . "\n"; echo '<br>isset ($s) = '. isset ($s) . "\n"; ?> Full Bug description available at: http://bugs.php.net/version4/?id=2692

« previous php.dev (#12483) next »