]> granicus.if.org Git - php/commit
Fix serializing ZEND_AST_SHELL_EXEC
authorSara Golemon <pollita@php.net>
Thu, 12 May 2016 02:28:57 +0000 (02:28 +0000)
committerSara Golemon <pollita@php.net>
Thu, 12 May 2016 02:47:56 +0000 (02:47 +0000)
commita73b03edea9b988e079b3c8c2018321e834ff78f
tree9a9aa0bc39278769f8b53d19ca89dfd353f7169e
parent414eb834604c87bacf8ccc9b2b2a7695a3ccda64
Fix serializing ZEND_AST_SHELL_EXEC

Currently, `foo` is reserialized as `'foo'` due to misuse of zend_ast_export().
ZEND_AST_SHELL_EXEC can only contain ZEND_AST_ZVAL(string) or ZEND_AST_ENCAPS_LIST,
so just handle the ZEND_AST_ZVAL(string) case directly.
Zend/tests/ast_serialize_backtick_literal.phpt [new file with mode: 0644]
Zend/zend_ast.c