com php-src: Replace INIT_PZVAL_COPY with ZVAL_DUP: ext/json/json_parser.y

From: Date: Sun, 16 Nov 2014 15:21:01 +0000
Subject: com php-src: Replace INIT_PZVAL_COPY with ZVAL_DUP: ext/json/json_parser.y
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84723@lists.php.net to get a copy of this message
Commit: ba70ba5f139b4d8892153a1b416819001a891176 Author: Jakub Zelenka <bukka@php.net> Sun, 16 Nov 2014 15:21:01 +0000 Parents: 432b73fdee8ae464d1a490a37faa774b850a1534 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ba70ba5f139b4d8892153a1b416819001a891176 Log: Replace INIT_PZVAL_COPY with ZVAL_DUP Changed paths: M ext/json/json_parser.y Diff: diff --git a/ext/json/json_parser.y b/ext/json/json_parser.y index 158bf1b..96a9ba3 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); } ;

« previous php.cvs (#84723) next »