开发者社区 问答 正文

php的函数的形参refcount加2,为什么?

php的函数的形参refcount为何要加2?

<?php 
$b = 1;
a($b);
function a($a){
   xdebug_debug_zval('a');//refcount=3 why not 2??
}

展开
收起
落地花开啦 2016-06-14 13:59:31 1943 分享 版权
1 条回答
写回答
取消 提交回答
  • 喜欢技术,喜欢努力的人

    形参传值时的refcount
    screenshot

    2019-07-17 19:37:26
    赞同 展开评论
问答分类:
PHP
问答标签:
问答地址: