fixed #13967 unsetting a static varible inside a function destryoes

the variable.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@64877 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jan Lehnardt 2001-12-12 23:00:47 +00:00
parent a5bea797bc
commit 229da4ff5a

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.82 $ -->
<!-- $Revision: 1.83 $ -->
<reference id="ref.variables">
<title>Variable Functions</title>
<titleabbrev>Variables</titleabbrev>
@ -1329,8 +1329,8 @@ something
</para>
<para>
If a static variable is <function>unset</function> inside of a
function, <function>unset</function> unsets the reference to the
static variable, rather than the static variable itself.
function, <function>unset</function> destroyes the variable and all
its references.
<informalexample>
<programlisting role="php">
<![CDATA[
@ -1353,8 +1353,8 @@ foo();
<screen>
<![CDATA[
1
2
3
1
1
]]>
</screen>
</informalexample>