Re: Zend API changes

From: Date: Wed, 09 May 2001 07:34:27 +0000
Subject: Re: Zend API changes
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-54467@lists.php.net to get a copy of this message
You should be using ZEND_EXTENSION_API_NO, it's an integer. Zeev At 23:32 8/5/2001, Dan Libby wrote:
ok, so ZEND_VERSION_DOUBLE is crazy talk. the preprocessor doesn't like floats either. But something like ZEND_VERSION_MAJOR 4, ZEND_VERSION_MINOR 6 would satisfy it. -danda Dan Libby wrote: This change also broke my extension. I'd like to have the extension be buildable with all of 4.x without user intervention, so I'm trying to figure out some way to handle the change via the pre-processor. I thought that ZEND_VERSION, defined in zend.h, might do the trick. Unfortunately, it is defined as a string, thus the C preprocessor won't perform any comparisons against it. Perhaps in 4.0.6+ there could also be a ZEND_VERSION_DOUBLE, eg: #define ZEND_VERSION_DOUBLE 4.06 Does anyone have any clever solutions to this problem that I could use today? thx. -- Dan Libby <dan@libby.com>, author of xmlrpc-epi check out xmlrpc-epi -- a C library for xmlrpc with a fast PHP extension. http://xmlrpc-epi.sourceforge.net and learn about xmlrpc, enabling remote procedure calls over the net. http://www.xmlrpc.com -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
-- Zeev Suraski <zeev@zend.com> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/

« previous php.dev (#54467) next »