Re: Revert Tokenizer behavior for 5.4
| From: | Nikita Popov | Date: | Thu, 15 Sep 2011 15:13:22 +0000 |
| Subject: | Re: Revert Tokenizer behavior for 5.4 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-55455@lists.php.net to get a copy of this message | ||
On Thu, Sep 15, 2011 at 5:05 PM, Hannes Magnusson
<hannes.magnusson@gmail.com> wrote:
> Wait wait wait. Thats the point here?
> __COMPILER_HALT_OFFSET__ already tells you where the data starts.
__COMPILER_HALT_OFFSET__ tells you the offset if you are running the
file. It is only available in the file that does the actual
__halt_compiler(); statement. When using the Tokenizer (this is what
this is about; this is *not* about PHP's own lexing/parsing behavior)
you don't have that constant available.
Though, again, I don't think the second patch is strictly necessary.
I'd be happy without, if it creates too many problems / is not
intuitive.
Nikita