summaryrefslogtreecommitdiff
path: root/Zend/tests/halt03.phpt
blob: deacebe4abaf1eb38b59cbfe4a1c489dac4e0054 (plain)
1
2
3
4
5
6
7
8
9
10
--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