com php-src: Scalar types don't have reference counter: ext/simplexml/simplexml.c

From: Date: Wed, 17 Jan 2018 13:17:43 +0000
Subject: com php-src: Scalar types don't have reference counter: ext/simplexml/simplexml.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-100938@lists.php.net to get a copy of this message
Commit: f7f790fcc9d57bcd0b6d356994c67ec746a5ac23 Author: Dmitry Stogov <dmitry@zend.com> Wed, 17 Jan 2018 16:17:43 +0300 Parents: 20866891bd3920faf0526e62eb07588d10f36713 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f7f790fcc9d57bcd0b6d356994c67ec746a5ac23 Log: Scalar types don't have reference counter Changed paths: M ext/simplexml/simplexml.c Diff: diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index e6a874a..a497a36 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -400,11 +400,6 @@ static void change_node_zval(xmlNodePtr node, zval *value) case IS_TRUE: case IS_DOUBLE: case IS_NULL: - if (Z_REFCOUNT_P(value) > 1) { - value_copy = *value; - zval_copy_ctor(&value_copy); - value = &value_copy; - } convert_to_string(value); /* break missing intentionally */ case IS_STRING:

« previous php.cvs (#100938) next »