Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于静态字符串的一个疑惑 #39

Open
linyiyuan opened this issue Sep 11, 2019 · 1 comment
Open

关于静态字符串的一个疑惑 #39

linyiyuan opened this issue Sep 11, 2019 · 1 comment

Comments

@linyiyuan
Copy link

No description provided.

@linyiyuan
Copy link
Author

linyiyuan commented Sep 11, 2019

在使用xdebug_debug_zval 对官方例子进行测试的使用发现PHP7.2跟PHP7.3两个不同版本下面结果差异

PHP7.3环境运行结果:

echo phpversion() . PHP_EOL;

$a = "hi~";

$b = $a;

xdebug_debug_zval('a');

//结果:
7.3.0-2+ubuntu18.04.1+deb.sury.org+1
a: (refcount=1, is_ref=0)='hi~'

PHP7.2环境运行结果:

7.2.19-0ubuntu0.18.04.2
a: (refcount=0, is_ref=0)='123'

如果按照官方例子应该是PHP7.2的运行结果,是PHP7.3对这方面进行了更新吗??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant