diff options
author | Jakub Zelenka <bukka@php.net> | 2014-11-16 15:21:01 +0000 |
---|---|---|
committer | Jakub Zelenka <bukka@php.net> | 2014-11-16 15:21:01 +0000 |
commit | ba70ba5f139b4d8892153a1b416819001a891176 (patch) | |
tree | 5c7159206b3e330f2108730a6cd2e6572aa611ce | |
parent | 432b73fdee8ae464d1a490a37faa774b850a1534 (diff) | |
download | php-git-ba70ba5f139b4d8892153a1b416819001a891176.tar.gz |
Replace INIT_PZVAL_COPY with ZVAL_DUP
-rw-r--r-- | ext/json/json_parser.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/json_parser.y b/ext/json/json_parser.y index 158bf1be80..96a9ba30c0 100644 --- a/ext/json/json_parser.y +++ b/ext/json/json_parser.y @@ -87,7 +87,7 @@ void php_json_parser_ht_append(HashTable *ht, zval *zvalue); %% /* Rules */ start: - value PHP_JSON_T_EOI { $$ = $1; INIT_PZVAL_COPY(parser->return_value, &$1); PHP_JSON_USE($2); YYACCEPT; } + value PHP_JSON_T_EOI { $$ = $1; ZVAL_DUP(parser->return_value, &$1); PHP_JSON_USE($2); YYACCEPT; } | value errlex { PHP_JSON_USE_2($$, $1, $2); } ; |