Re: ZEND_ENGINE_2 define
| From: | Derick Rethans | Date: | Sun, 04 Jan 2015 13:21:34 +0000 |
| Subject: | Re: ZEND_ENGINE_2 define | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80149@lists.php.net to get a copy of this message | ||
On Fri, 2 Jan 2015, Sara Golemon wrote:
>
> > It was deliberate, I did it. The reason for getting rid of it was because it makes
> > checking ZE2 simpler, actually. I didn't want to have to do #if defined(ZEND_ENGINE_2)
> > && !defined(ZEND_ENGINE_3).
> >
> So instead you have to do:
> #if defined(ZEND_ENGINE_2) || defined(ZEND_ENGINE_3)
>
> But cool, kind of arbitrary either way, so it's all good.
I'm rather more of a fan to actually do:
#if PHP_VERSION_ID >= 70000 instead anyway....
cheers,
Derick