com php-src: Let's only read-only here: ext/standard/var.c

From: Date: Tue, 17 May 2016 10:07:20 +0000
Subject: com php-src: Let's only read-only here: ext/standard/var.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92162@lists.php.net to get a copy of this message
Commit: 2eb7e75c25e3b16c3265e6a53f57a29dbeec0d2f Author: Xinchen Hui <laruence@gmail.com> Tue, 17 May 2016 18:07:20 +0800 Parents: 7989db975f325d83b461a46c3dc75a81fcc27795 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2eb7e75c25e3b16c3265e6a53f57a29dbeec0d2f Log: Let's only read-only here Changed paths: M ext/standard/var.c Diff: diff --git a/ext/standard/var.c b/ext/standard/var.c index 4f94ec3..472cd62 100644 --- a/ext/standard/var.c +++ b/ext/standard/var.c @@ -958,7 +958,7 @@ again: } if (Z_ISREF_P(data) && Z_REFCOUNT_P(data) == 1) { - ZVAL_UNREF(data); + data = Z_REFVAL_P(data); } /* we should still add element even if it's not OK,

« previous php.cvs (#92162) next »