debug_zval_dump vs. var_dump
View Single Post
04-23-2008, 12:18 AM
Join Date: Dec 2007
Originally Posted by
After looking at the relevant PHP source code (in
for those interested) it appears as though your assumption is correct.
simply displays the associated
As for your code snippet,
would report a refcount of
, believe it or not. Once (1) for the first assignment of "Hello" to
. Another (2) for the assign-by-reference to
. Another (3) for the assign-by-reference to
. Finally another (4) reference is made when calling
I guess that's because of me referencing in the arguments of the function?
"The reasonable man adapts himself to the conditions that surround him... The unreasonable man adapts surrounding conditions to himself... All progress depends on the unreasonable man." - George Bernard Shaw
View Public Profile
Send a private message to Orc
Visit Orc's homepage!
Find More Posts by Orc