#define for zend engine 2.1

From: Date: Mon, 07 Feb 2005 12:09:40 +0000
Subject: #define for zend engine 2.1
Groups: php.internals 
Request: Send a blank email to internals+get-14685@lists.php.net to get a copy of this message
Hello internals, is 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 unfortunately, zend.h contains only these version-related defines: #define ZEND_VERSION "2.1.0-dev" #define ZEND_ENGINE_2 maybe, there's some other #define that can be used to tell ze2.0 from ze2.1? -- Best regards, val mailto:val@vk.kiev.ua

« previous php.internals (#14685) next »