Doc #68564 [Ver->Csd]: Apparent inconsistency in the GC page

[email protected]
Newsgroups php.doc.bugs
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=68564&edit=1

 ID:                 68564
 Updated by:         [email protected]
 Reported by:        dominic_mayers at yahoo dot com
 Summary:            Apparent inconsistency in the GC page
-Status:             Verified
+Status:             Closed
 Type:               Documentation Problem
 Package:            Documentation problem
 PHP Version:        Irrelevant
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Automatic comment on behalf of cmb69
Revision: https://github.com/php/doc-en/commit/39cd8c54e8159361d33f33837c904bf6cfb6c055
Log: Fix #68564: Apparent inconsistency in the GC page


Previous Comments:
------------------------------------------------------------------------
[2021-07-19 15:54:34] [email protected]

> Note that if "refcount" is 1, "is_ref" is always FALSE.

Indeed, this is not correct.  What the documentation likely wants
to express is that references with refcount 1 are treated as if
they're were no references.

------------------------------------------------------------------------
[2014-12-08 02:38:09] dominic_mayers at yahoo dot com

Description:
------------
---
From manual page: http://www.php.net/features.gc.refcounting-basics
---
In the example 1, we have : Note that if "refcount" is 1, "is_ref" is always FALSE. What "always" means here is definitively not clear, because later in example 9 we have : 1 => (refcount=1, is_ref=1)=...



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



--
Edit this bug report at https://bugs.php.net/bug.php?id=68564&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.