xref: /php-src/Zend/tests/halt_compiler5.phpt (revision 7aacc705)
1--TEST--
2Using __COMPILER_HALF_OFFSET__ with trailing {} (OSS-Fuzz #17895)
3--FILE--
4<?php
5__COMPILER_HALT_OFFSET__;
6{}
7?>
8--EXPECTF--
9Fatal error: Uncaught Error: Undefined constant "__COMPILER_HALT_OFFSET__" in %s:%d
10Stack trace:
11#0 {main}
12  thrown in %s on line %d
13