From: Jakub Zelenka Date: Sun, 15 Feb 2015 19:46:41 +0000 (+0000) Subject: Remove unused destructor in json parser X-Git-Tag: PRE_PHP7_EREG_MYSQL_REMOVALS~143^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=549c6fa46516f6aa1c540ac230abe28f5a7dc9a5;p=php Remove unused destructor in json parser --- diff --git a/ext/json/json_parser.tab.c b/ext/json/json_parser.tab.c index 3726284979..5d2f9ca4aa 100644 --- a/ext/json/json_parser.tab.c +++ b/ext/json/json_parser.tab.c @@ -514,10 +514,10 @@ static const yytype_uint8 yytranslate[] = /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ static const yytype_uint8 yyrline[] = { - 0, 93, 93, 94, 98, 98, 102, 103, 107, 108, - 112, 113, 114, 118, 119, 123, 123, 127, 128, 132, - 133, 137, 138, 139, 143, 144, 148, 149, 150, 151, - 152, 153, 154, 155, 156, 157, 161 + 0, 92, 92, 93, 97, 97, 101, 102, 106, 107, + 111, 112, 113, 117, 118, 122, 122, 126, 127, 131, + 132, 136, 137, 138, 142, 143, 147, 148, 149, 150, + 151, 152, 153, 154, 155, 156, 160 }; #endif diff --git a/ext/json/json_parser.y b/ext/json/json_parser.y index 221dcb6982..de100dbdae 100644 --- a/ext/json/json_parser.y +++ b/ext/json/json_parser.y @@ -67,7 +67,6 @@ int json_yydebug = 1; %type pair %destructor { zval_dtor(&$$); } -%destructor { zend_hash_destroy($$); FREE_HASHTABLE($$); } %destructor { zval_dtor(&$$.key); zval_dtor(&$$.val); } %code {