Re: RE : [PHP-DEV] [PATCH] better implementation for __HALT_COMPILER();

From: Date: Wed, 07 Feb 2007 10:18:28 +0000
Subject: Re: RE : [PHP-DEV] [PATCH] better implementation for __HALT_COMPILER();
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-27878@lists.php.net to get a copy of this message
On 02/07/2007 01:14 PM, LAUPRETRE François (P) wrote:
From: Gregory Beaver [mailto:greg@chiaraquartet.net]
Currently, this code results in a fatal error
Are you sure it is a fatal error ? I only get an E_NOTICE in 5.1.6. Did it change in 5.2? Please tell me if it is the case, because I would have to update my documentation.
It's E_COMPILE_ERROR.
However, this is extremely unlikely to break any existing scripts since it was designed for self-contained installers, and to my knowledge, Phar/PHP_Archive and some auxiliary thing called PHK are the only things using it.
PHK uses __HALT_COMPILER() but does not use the __COMPILER_HALT_OFFSET__ constant. So, for PHK, there is no BC issue with your patch.
-- Wbr, Antony Dovgal

« previous php.internals (#27878) next »