]> granicus.if.org Git - php/commitdiff
Fix compile warning in ast.c
authorNikita Popov <nikic@php.net>
Mon, 2 May 2016 09:55:49 +0000 (11:55 +0200)
committerNikita Popov <nikic@php.net>
Mon, 2 May 2016 09:55:49 +0000 (11:55 +0200)
Zend/zend_ast.c

index e7c61119197bedf6f3d9b8e6d13cd4b55bd4190e..2636d2d5617503aae0f545650a0e83456c40858a 100644 (file)
@@ -1587,7 +1587,7 @@ simple_list:
                        break;
                case ZEND_AST_CATCH:
                        smart_str_appends(str, "} catch (");
-                       zend_ast_export_catch_name_list(str, ast->child[0], indent);
+                       zend_ast_export_catch_name_list(str, zend_ast_get_list(ast->child[0]), indent);
                        smart_str_appends(str, " $");
                        zend_ast_export_var(str, ast->child[1], 0, indent);
                        smart_str_appends(str, ") {\n");