php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76195 Garbage collection chapter
Submitted: 2018-04-08 09:34 UTC Modified: 2018-04-08 15:26 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: yuanzhenchao at aliyun dot com Assigned:
Status: Verified Package: Documentation problem
PHP Version: 7.1Git-2018-04-08 (Git) OS: centos
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
16 + 10 = ?
Subscribe to this entry?

 
 [2018-04-08 09:34 UTC] 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. 如果你已经安装。。。


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-04-08 15:26 UTC] cmb@php.net
-Summary: 垃圾回收章节 +Summary: Garbage collection chapter -Status: Open +Status: Verified -Package: phpdbg +Package: Documentation problem
 [2018-04-08 15:26 UTC] cmb@php.net
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>
 [2023-05-02 07:06 UTC] godsadeepkas at gmail dot com
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 21:01:36 2024 UTC