com php-src: Do not copy return_value in parser: ext/ json/json_parser.y

From: Date: Sun, 07 Dec 2014 20:27:03 +0000
Subject: com php-src: Do not copy return_value in parser: ext/ json/json_parser.y
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84726@lists.php.net to get a copy of this message
Commit: c6d0905158fcf415f71c5c338f76d78030e746e4 Author: Jakub Zelenka <bukka@php.net> Sun, 7 Dec 2014 20:27:03 +0000 Parents: c51ea4799609ebd73521d1bbd69bd0d2bb47f328 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c6d0905158fcf415f71c5c338f76d78030e746e4 Log: Do not copy return_value in parser Changed paths: M ext/json/json_parser.y Diff: diff --git a/ext/json/json_parser.y b/ext/json/json_parser.y index 1d0620a..6b40c25 100644 --- a/ext/json/json_parser.y +++ b/ext/json/json_parser.y @@ -85,7 +85,7 @@ void php_json_parser_array_append(zval *array, zval *zvalue); %% /* Rules */ start: - value PHP_JSON_T_EOI { $$ = $1; ZVAL_DUP(parser->return_value, &$1); PHP_JSON_USE($2); YYACCEPT; } + value PHP_JSON_T_EOI { $$ = $1; *parser->return_value = $1; PHP_JSON_USE($2); YYACCEPT; } | value errlex { PHP_JSON_USE_2($$, $1, $2); } ;

« previous php.cvs (#84726) next »