Fix bogus namespace error.
commitf84abb749b29f864aadaa32db3aae8d7b37a32a6
authorJason Carreiro <jcarreiro@fb.com>
Fri, 7 Feb 2014 22:49:36 +0000 (7 14:49 -0800)
committerSara Golemon <sgolemon@fb.com>
Sat, 8 Feb 2014 00:52:57 +0000 (7 16:52 -0800)
treea8e29063d7a9ad8052255c762db23ee6712559eb
parentddcf959cb60f4334541398d44d890fe3d347f04a
Fix bogus namespace error.

Don't bail out with an error if a hashbang precedes a namespace declaration
in a source file.

Reviewed By: @ptarjan

Differential Revision: D1160029
hphp/compiler/parser/hphp.tab.cpp
hphp/compiler/parser/parser.cpp
hphp/compiler/parser/parser.h
hphp/parser/hphp.y
hphp/parser/xhpast2/parser.h
hphp/test/slow/namespace/hashbang.php [new file with mode: 0644]
hphp/test/slow/namespace/hashbang.php.expect [new file with mode: 0644]
hphp/test/slow/namespace/hashbang_2.php [new file with mode: 0644]
hphp/test/slow/namespace/hashbang_2.php.expectf [new file with mode: 0644]