xref: /PHP-8.2/Zend/tests/halt03.phpt (revision 7aacc705)
1--TEST--
2__HALT_COMPILER() basic test
3--FILE--
4<?php
5
6if (true) {
7    __HALT_COMPILER();
8}
9?>
10--EXPECTF--
11Fatal error: __HALT_COMPILER() can only be used from the outermost scope in %shalt03.php on line %d
12