xref: /PHP-7.0/Zend/tests/bug53305.phpt (revision 8901635d)
1--TEST--
2Bug #53305 (E_NOTICE when defining a constant starts with __COMPILER_HALT_OFFSET__)
3--FILE--
4<?php
5error_reporting(E_ALL);
6
7define('__COMPILER_HALT_OFFSET__1', 1);
8define('__COMPILER_HALT_OFFSET__2', 2);
9define('__COMPILER_HALT_OFFSET__', 3);
10define('__COMPILER_HALT_OFFSET__1'.chr(0), 4);
11
12var_dump(__COMPILER_HALT_OFFSET__1);
13var_dump(constant('__COMPILER_HALT_OFFSET__1'.chr(0)));
14
15?>
16--EXPECTF--
17Notice: Constant __COMPILER_HALT_OFFSET__ already defined in %s on line %d
18int(1)
19int(4)
20