From a5c69fdd7097fe331da0f5d26edb4b48b9c48ae0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20Andr=C3=A9=20dos=20Santos=20Lopes?= Date: Mon, 6 Sep 2010 04:44:15 +0000 Subject: [PATCH] - Clarifying apparently contradictory phrase, as per bug #52695 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@303065 c90b9560-bf6c-de11-be94-00142212c4b1 --- features/gc.xml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/features/gc.xml b/features/gc.xml index 119929c322..91c4f3bebb 100644 --- a/features/gc.xml +++ b/features/gc.xml @@ -206,14 +206,16 @@ a: (refcount=1, is_ref=0)=array ( From the above Xdebug output, we see that both the old and new array - element now point to a zval container whose "refcount" is - 2. Of course, - there are now two zval containers, but they are the same one. The + elements now point to a zval container whose "refcount" is + 2. Although Xdebug's output shows two zval containers + with value 'life', they are the same one. The xdebug_debug_zval function does not show this, but - you could see this by also displaying the memory pointer. Removing an - element from the array is like removing a symbol from a scope. By doing - so, the "refcount" of a container that an array element points to is - decreased. Again, when the "refcount" reaches zero, the variable + you could see it by also displaying the memory pointer. + + + Removing an element from the array is like removing a symbol from a scope. + By doing so, the "refcount" of a container that an array element points to + is decreased. Again, when the "refcount" reaches zero, the variable container is removed from memory. Again, an example to show this: