[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/features/_gc.xml?=
From:       Christoph_Michael_Becker <cmb () php ! net>
Date:       2016-07-30 0:09:23
Message-ID: svn-cmb-1469837363-339741-875310122 () svn ! php ! net
[Download RAW message or body]

cmb                                      Sat, 30 Jul 2016 00:09:23 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=339741

Log:
Fix #70181: Missing information which confuses readers

Bug: https://bugs.php.net/70181 (Open) Missing information which confuses readers
      
Changed paths:
    U   phpdoc/en/trunk/features/gc.xml

Modified: phpdoc/en/trunk/features/gc.xml
===================================================================
--- phpdoc/en/trunk/features/gc.xml	2016-07-29 12:14:07 UTC (rev 339740)
+++ phpdoc/en/trunk/features/gc.xml	2016-07-30 00:09:23 UTC (rev 339741)
@@ -97,7 +97,7 @@
     container when it is not necessary. Variable containers get destroyed when
     the "refcount" reaches zero. The "refcount" gets decreased by one when any
     symbol linked to the variable container leaves the scope (e.g. when the
-    function ends) or when <function>unset</function> is called on a symbol.
+    function ends) or when a symbol is unassigned (e.g. by calling <function>unset</function>).
     The following example shows this:
    </para>
    <para>
@@ -109,8 +109,10 @@
 $a = "new string";
 $c = $b = $a;
 xdebug_debug_zval( 'a' );
-unset( $b, $c );
+$b = 42;
 xdebug_debug_zval( 'a' );
+unset( $c );
+xdebug_debug_zval( 'a' );
 ?>
 ]]>
      </programlisting>
@@ -118,6 +120,7 @@
      <screen>
 <![CDATA[
 a: (refcount=3, is_ref=0)='new string'
+a: (refcount=2, is_ref=0)='new string'
 a: (refcount=1, is_ref=0)='new string'
 ]]>
      </screen>



-- 
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic