remove assert for ::class and make it fatal instead
commitb873e69600b285d3f95cb1961f1c796f2444378b
authorPaul Tarjan <ptarjan@fb.com>
Thu, 23 Jan 2014 16:04:36 +0000 (23 08:04 -0800)
committerSara Golemon <sgolemon@fb.com>
Tue, 28 Jan 2014 17:17:47 +0000 (28 09:17 -0800)
tree9f652f17dbb79ee80000a05ccccdcbc9fd89feca
parent20f3e66d927835cd63445322110e1e178826641d
remove assert for ::class and make it fatal instead

If you do `parent::class` in a pseudomain you end up in this case. Zend gives this message in that case

Reviewed By: @elgenie

Differential Revision: D1140116
15 files changed:
hphp/compiler/analysis/emitter.cpp
hphp/compiler/expression/class_constant_expression.h
hphp/compiler/parser/hphp.tab.cpp
hphp/compiler/parser/parser.cpp
hphp/compiler/parser/parser.h
hphp/parser/hphp.y [changed mode: 0755->0644]
hphp/parser/xhpast2/parser.h
hphp/runtime/vm/bytecode.cpp
hphp/test/slow/parser/colon_colon_class.php [new file with mode: 0644]
hphp/test/slow/parser/colon_colon_class.php.expect [new file with mode: 0644]
hphp/test/slow/parser/colon_colon_class_include_parent.inc [new file with mode: 0644]
hphp/test/slow/parser/colon_colon_class_include_parent.php [new file with mode: 0644]
hphp/test/slow/parser/colon_colon_class_include_parent.php.expectf [new file with mode: 0644]
hphp/test/zend/good/Zend/tests/class_name_as_scalar.php [moved from hphp/test/zend/bad/Zend/tests/class_name_as_scalar.php with 100% similarity]
hphp/test/zend/good/Zend/tests/class_name_as_scalar.php.expectf [moved from hphp/test/zend/bad/Zend/tests/class_name_as_scalar.php.expectf with 100% similarity]