Variable references let people get into the mess.
What references, separates, writes when copied, changes when writing .....
Like what:
RefCount test out the results are different, xdebug quasi or built-in debug_zval_dump quasi?
Reply to discussion (solution)
Call Debug_zval_dump ($a); When the parameter and $ A are separated debug_zval_dump calls can refer to the following conditions
$a = 1;
$b = & $a
$c = $a
Reference http://www.laruence.com/2008/09/19/520.html
Reference http://www.laruence.com/2008/09/19/520.html
It's just a matter of reading this article. The RefCount in the report of two functions is not a meaning
Please don't be fooled by smattering's article.
The RefCount in the report of two functions is not a meaning
Please don't be fooled by smattering's article.
What do you mean by that distinction? These two functions are not all used to view the reference count
These two functions are not all used to view the reference count
Check the app Count
Debug_zval_dump ($a); Please refer to Debug_zval_dump (& $a); Because you have this kind of invocation as in the following case read and write separation $c has been separated from $ A
$a = 1;
$b = & $a
$c = $a
Xdebug_debug_zval is really a reference count and Debug_zval_dump is a reference count +1 because it is passed to it