Tolerate nullptrs in AST
commitec4bd4cb8b1e4c415380576619926b7b4419fe61
authorJoseph Griego <jgriego@fb.com>
Thu, 13 Jul 2017 17:01:15 +0000 (13 10:01 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 13 Jul 2017 19:20:10 +0000 (13 12:20 -0700)
tree99a5ce926d08b250b991d715247a4d057b74a118
parent95dba13db9512076c892f25203e5e6ffce08d6b5
Tolerate nullptrs in AST

Summary:
I discovered while running the Zend tests that the parser can produce a nullptr
in the tree when there's an explicit closing tag. Make sure we don't choke on it.

Reviewed By: mofarrell

Differential Revision: D5382773

fbshipit-source-id: 871959a937cd40e6f94177574a7ea0c93205d31a
hphp/php7/ast_dump.cpp
hphp/php7/compiler.cpp
hphp/test/php7-emitter/explicit-closing-tag.php [new file with mode: 0644]
hphp/test/php7-emitter/explicit-closing-tag.php.expect [new file with mode: 0644]