php-src/Zend/tests/bug69755.phpt
Nikita Popov aad39879f2 Remove bareword fallback for constants
Access to undefined constants will now always result in an Error
exception being thrown.

This required quite a few test changes, because there were many
buggy tests that unintentionally used bareword fallback in combination
with error suppression.
2019-01-31 13:52:06 +01:00

12 lines
219 B
PHP

--TEST--
Bug #69755: segfault in ZEND_CONCAT_SPEC_TMPVAR_CONST_HANDLER
--FILE--
<?php
c . 10;
?>
--EXPECTF--
Fatal error: Uncaught Error: Undefined constant 'c' in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d