php-src/Zend/tests/halt_compiler3.phpt
Ilia Alshanetsky 17c0c49a54 Addres limitation of __HALT_COMPILER() that allowed only one instance
per request.

# Patch by Greg Beaver
2007-04-04 00:42:42 +00:00

10 lines
233 B
PHP

--TEST--
__HALT_COMPILER(); bad define() of __COMPILER_HALT_OFFSET__ 1
--FILE--
<?php
define ('__COMPILER_HALT_OFFSET__', 1);
?>
==DONE==
--EXPECTF--
Notice: Constant __COMPILER_HALT_OFFSET__ already defined in %s on line %d
==DONE==