Bug #15570 Updated: unset and static variables
| From: | nohn@php.net | Date: | Fri, 15 Feb 2002 15:43:51 +0000 |
| Subject: | Bug #15570 Updated: unset and static variables | ||
| References: | 1 | Groups: | php.bugs php.doc |
| Request: | Send a blank email to php-bugs+get-363@lists.php.net to get a copy of this message | ||
ID: 15570
Updated by: nohn@php.net
Reported By: ivan.lamouret@novitek.fr
-Status: Open
+Status: Closed
Bug Type: Documentation problem
PHP Version: 4.1.1
New Comment:
This bug has been fixed in CVS.
Previous Comments:
------------------------------------------------------------------------
[2002-02-15 10:21:55] ivan.lamouret@novitek.fr
The example about static variables in the manual page for "unset" is
broken : the output is actually 1 2 3 (not 1 1 1) there is no reset.
function foo() {
static $a;
$a++;
echo "$a\n";
unset($a);
}
foo();foo();foo()
From the discussion of bugs 2015, 6810, and 13967 it seems it is
clearly an error in the doc.
Ivan
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15570&edit=1