I can't comprehend the refcount that debug_zval_dump() print.
<?php
$str = "test function";
$sr1 = '';
$str1 = & $str;
debug_zval_dump($str);
The output of the above code: string(13) "test function" refcount(1)
when i delete the ampersand before the $str:
<?php
$str = "test function";
$sr1 = '';
$str1 = $str;
debug_zval_dump($str);
The output of the above code :string(13) "test function" refcount(3)
what has happened ? The first refcount is "1".But, i think it also referenced three times.