summaryrefslogtreecommitdiff
path: root/ext/json/json_parser.y
diff options
context:
space:
mode:
authorJakub Zelenka <bukka@php.net>2014-12-07 20:27:03 +0000
committerJakub Zelenka <bukka@php.net>2014-12-07 20:27:03 +0000
commitc6d0905158fcf415f71c5c338f76d78030e746e4 (patch)
treeee28be07bfc37abb07bd150f6290c66987c4c7fc /ext/json/json_parser.y
parentc51ea4799609ebd73521d1bbd69bd0d2bb47f328 (diff)
downloadphp-git-c6d0905158fcf415f71c5c338f76d78030e746e4.tar.gz
Do not copy return_value in parser
Diffstat (limited to 'ext/json/json_parser.y')
-rw-r--r--ext/json/json_parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/json_parser.y b/ext/json/json_parser.y
index 1d0620a9f8..6b40c259f3 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); }
;