php-src/Zend/tests/halt_compiler5.phpt
2019-10-02 12:08:12 +02:00

12 lines
264 B
PHP

--TEST--
Using __COMPILER_HALF_OFFSET__ with trailing {} (OSS-Fuzz #17895)
--FILE--
<?php
__COMPILER_HALT_OFFSET__;
{}
--EXPECTF--
Fatal error: Uncaught Error: Undefined constant '__COMPILER_HALT_OFFSET__' in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d