mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
a5bea797bc
commit
229da4ff5a
1 changed files with 5 additions and 5 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue