ID: 15570
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]
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