Doc #76195 [Com]: Garbage collection chapter

[email protected] ("godsadeepkas at gmail dot com") Tue, 02 May 2023 07:06:37 +0000
Newsgroups php.doc.bugs
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=76195&edit=1

 ID:                 76195
 Comment by:         godsadeepkas at gmail dot com
 Reported by:        yuanzhenchao at aliyun dot com
 Summary:            Garbage collection chapter
 Status:             Verified
 Type:               Documentation Problem
 Package:            Documentation problem
 Operating System:   centos
 PHP Version:        7.1Git-2018-04-08 (Git)
 Block user comment: N
 Private report:     N

 New Comment:

Up Story News are sharing latest news about business, finance, loan, tax, auto, home improvement, travel, tech, health etc. More info to visit our website: (https://upstorynews.com)github.com


Previous Comments:
------------------------------------------------------------------------
[2018-04-08 15:26:37] [email protected]

Indeed, the chapter on Garbage Collection[1] is not yet up-to-date
for PHP 7.

[1] <http://php.net/manual/en/features.gc.php>

------------------------------------------------------------------------
[2018-04-08 09:34:04] yuanzhenchao at aliyun dot com

Description:
------------
新建变量,使用xdebug_debug_zval()效果和文档中不一样。

打印结果
a:
(refcount=0, is_ref=0)string 'new string' (length=10)

文档中描述:
新的变量a,是在当前作用域中生成的。并且生成了类型为 string 和值为new string的变量容器。在额外的两个字节信息中,"is_ref"被默认设置为 FALSE,因为没有任何自定义的引用生成。"refcount" 被设定为 1,因为这里只有一个变量使用这个变量容器. 注意到当"refcount"的值是1时,"is_ref"的值总是FALSE. 如果你已经安装。。。



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=76195&edit=1