php-src/Zend/tests/halt03.phpt
2005-06-04 16:16:19 +00:00

11 lines
200 B
PHP

--TEST--
__HALT_COMPILER() basic test
--FILE--
<?php
if (true) {
__HALT_COMPILER();
}
--EXPECTF--
Fatal error: __HALT_COMPILER() can only be used from the outermost scope in %shalt03.php on line %d