Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14686 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92103 invoked by uid 1010); 7 Feb 2005 12:43:19 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 91832 invoked from network); 7 Feb 2005 12:43:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Feb 2005 12:43:18 -0000 X-Host-Fingerprint: 212.204.192.51 jdi.jdimedia.nl Linux 2.5 (sometimes 2.4) (4) Received: from ([212.204.192.51:36966] helo=jdi.jdimedia.nl) by pb1.pair.com (ecelerity HEAD (r4105:4106)) with SMTP id 71/11-39421-36267024 for ; Mon, 07 Feb 2005 07:43:16 -0500 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id j17ChC7v016096 for ; Mon, 7 Feb 2005 13:43:12 +0100 Received: from jdi.jdimedia.nl ([127.0.0.1]) by localhost (jdi.jdimedia.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16049-01-2 for ; Mon, 7 Feb 2005 13:43:12 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id j17Cgoir016033; Mon, 7 Feb 2005 13:42:52 +0100 Date: Mon, 7 Feb 2005 13:42:49 +0100 (CET) X-X-Sender: derick@localhost To: val khokhlov cc: internals@lists.php.net In-Reply-To: <5247385.20050207140940@vk.kiev.ua> Message-ID: References: <5247385.20050207140940@vk.kiev.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdimedia.nl Subject: Re: [PHP-DEV] #define for zend engine 2.1 From: derick@php.net (Derick Rethans) On Mon, 7 Feb 2005, val khokhlov wrote: > 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 #if PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 1 works ;-) Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org