mirror of
https://github.com/php/php-src.git
synced 2025-01-05 18:33:56 +08:00
edf22962ef
We missed the change to make this an Error exception in PHP 8, but at least elevate it to a warning, to avoid a notice -> exception jump at a later time.
9 lines
217 B
PHP
9 lines
217 B
PHP
--TEST--
|
|
__HALT_COMPILER(); bad define() of __COMPILER_HALT_OFFSET__ 1
|
|
--FILE--
|
|
<?php
|
|
define ('__COMPILER_HALT_OFFSET__', 1);
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Constant __COMPILER_HALT_OFFSET__ already defined in %s on line %d
|