PHP 4.0 Bug #2692: clarification: unset and reference

From: Date: Wed, 10 Nov 1999 18:05:20 +0000
Subject: PHP 4.0 Bug #2692: clarification: unset and reference
Groups: php.dev 
Request: Send a blank email to php-dev+get-12254@lists.php.net to get a copy of this message
From: php-bug@vogtner.de Operating system: any PHP version: 4.0 Beta 2 PHP Bug Type: Documentation problem Bug description: clarification: unset and reference <% function sub (&$v) { unset ($v); $v = 66; } sub ($s); echo '<br>$s = '. $s . "\n"; echo '<br>isset ($s) = '. isset ($s) . "\n"; %> (a) unset breaks the reference between local $v and parameter $s. (b) $s becomes defined (no more warnings) by taking a reference but it is not set. Will this be documented?

« previous php.dev (#12254) next »