com php-src: Cleanup: avoid useless array duplication: ext/spl/spl_array.c

From: Date: Thu, 24 Sep 2015 23:20:05 +0000
Subject: com php-src: Cleanup: avoid useless array duplication: ext/spl/spl_array.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-89169@lists.php.net to get a copy of this message
Commit: c21d18ef950490d0931f3d509fc271502813c3dd Author: Dmitry Stogov <dmitry@zend.com> Fri, 25 Sep 2015 02:20:05 +0300 Parents: 01d5beddf4996eb2599f1bd62ae57bbc0298daf7 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c21d18ef950490d0931f3d509fc271502813c3dd Log: Cleanup: avoid useless array duplication Changed paths: M ext/spl/spl_array.c Diff: diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c index d9ae242..faae6ef 100644 --- a/ext/spl/spl_array.c +++ b/ext/spl/spl_array.c @@ -1674,12 +1674,10 @@ SPL_METHOD(Array, serialize) rebuild_object_properties(&intern->std); } - ZVAL_ARR(&members, zend_array_dup(intern->std.properties)); + ZVAL_ARR(&members, intern->std.properties); php_var_serialize(&buf, &members, &var_hash); /* finishes the string */ - zval_ptr_dtor(&members); - /* done */ PHP_VAR_SERIALIZE_DESTROY(var_hash);

« previous php.cvs (#89169) next »