Re: ZEND_ENGINE_2 define
| From: | Pierre Joye | Date: | Fri, 02 Jan 2015 05:54:38 +0000 |
| Subject: | Re: ZEND_ENGINE_2 define | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80085@lists.php.net to get a copy of this message | ||
On Jan 2, 2015 12:24 PM, "Sara Golemon" <pollita@php.net> wrote:
>
> I realize that ZE3 is not ZE2, but I always saw the ZEND_ENGINE_2
> define as more of a "At least ZE2" so that code of the form:
>
> #ifdef ZEND_ENGINE_2
> newAPI();
> #else /* ZE1 */
> oldAPI();
> #endif
>
> Would continue making sense (modulo newNewAPI() in ZE3, of course).
>
> Was the ZEND_ENGINE_2 define removed on purpose? Or as an accidental
> side-effect of a mass update to "We're ZE3 now!"
Afair on purpose.
And I prefer it this way. Many changes are so subtle that we may have way
too many bad bugs in exts if ze2 or later is used. IMHO :)
Cheers,
Pierre