Variable reference counting problem variable reference can be confusing
What is the reference, separation, and replication during writing? changes during writing .....
For example:
The refcount test results are different. is xdebug accurate or built-in debug_zval_dump accurate?
Reply to discussion (solution)Call debug_zval_dump ($ a); when the form parameter and $ a are separated, call debug_zval_dump can be referred to the following situation
$ A = 1;
$ B = & $
$ C = $
Reference http://www.laruence.com/2008/09/19/520.html
Reference http://www.laruence.com/2008/09/19/520.html
It is the only question I have read this article. The refcount in the report of the two functions is not a meaning
Please do not be confused by a thorough article.
The refcount in the report of the two functions is not a meaning
Please do not be confused by a thorough article.
What do they mean? Are these two functions used to view reference counts?
Are these two functions used to view reference counts?
View the application count
Debug_zval_dump ($ a); use the reference method debug_zval_dump (& $ a). because your call is similar to the following situation, read/write splitting occurs. $ c has been separated from $.
$ A = 1;
$ B = & $
$ C = $
Xdebug_debug_zval is the reference count, while debug_zval_dump is the reference count + 1 because it transmits parameters to it.