# [PATCH] version 2, __HALT_COMPILER();

- Thread: https://externals.io/message/27886
- Original archive: https://news-web.php.net/php.internals/27886
- Started by Gregory Beaver on 2007-02-07T17:10:58+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #27886 — Gregory Beaver — 2007-02-07T17:10:58+00:00

URL: https://externals.io/message/27886#27886

Hi,

The last patch version still allowed:

<?php
define('__COMPILER_HALT_OFFSET__', 1);
?>

which would break any __HALT_COMPILER();

Interestingly enough, the current implementation makes this script a
fatal error:

<?php
define('__COMPILER_HALT_OFFSET__', 1);
__HALT_COMPILER();
?>

But not at the first define, instead it does at the __HALT_COMPILER();. 
Once again a bug, as it should instead give a notice that
__COMPILER_HALT_OFFSET__ is already defined at the userspace `define()`.

Greg
