note 123601 added to features.gc.refcounting-basics
| From: | yuri1308960477 at gmail dot com | Date: | Mon, 11 Feb 2019 07:35:12 +0000 |
| Subject: | note 123601 added to features.gc.refcounting-basics | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-210228@lists.php.net to get a copy of this message | ||
my php versoin : HP 7.1.25 (cli) (built: Dec 7 2018 08:20:45) ( NTS )
$a = 'new string';
$b = 1;
xdebug_debug_zval('a');
xdebug_debug_zval('b');
output:
a: (refcount=2, is_ref=0)='new string'
b: (refcount=0, is_ref=0)=1
if $a is a string value, 'refcount' equal 2 by defalut.
----
Server IP: 208.43.231.9
Probable Submitter: 185.85.3.142 (proxied: 222.209.92.160)
----
Manual Page -- http://php.net/manual/en/features.gc.refcounting-basics.php
Edit -- https://master.php.net/note/edit/123601
Del: integrated -- https://master.php.net/note/delete/123601/integrated
Del: useless -- https://master.php.net/note/delete/123601/useless
Del: bad code -- https://master.php.net/note/delete/123601/bad+code
Del: spam -- https://master.php.net/note/delete/123601/spam
Del: non-english -- https://master.php.net/note/delete/123601/non-english
Del: in docs -- https://master.php.net/note/delete/123601/in+docs
Del: other reasons-- https://master.php.net/note/delete/123601
Reject -- https://master.php.net/note/reject/123601
Search -- https://master.php.net/manage/user-notes.php