Re: #define for zend engine 2.1
| From: | M. Sokolewicz | Date: | Mon, 07 Feb 2005 13:07:47 +0000 |
| Subject: | Re: #define for zend engine 2.1 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-14687@lists.php.net to get a copy of this message | ||
Derick Rethans wrote:
On Mon, 7 Feb 2005, val khokhlov wrote:#if PHP_MAJOR_VERSION >= 5 && PHP_MINOR_VERSION >= 1 be better in case this code would ever be used with a hypothetical PHP version 6? ;) - tul#if PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 1 works ;-) Derick wouldn'tis there a way to find out version of zend engine (2 or 2.1)? i need it in the code like this:#if defined(ZEND_ENGINE_2_1) ZEND_VM_SET_OPCODE_HANDLER(zo); #elif defined(ZEND_ENGINE_2) zo->handler = zend_opcode_handlers[zo->opcode]; #endif