Re: Zend API changes

From: Date: Tue, 08 May 2001 20:32:39 +0000
Subject: Re: Zend API changes
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-54436@lists.php.net to get a copy of this message
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

« previous php.dev (#54436) next »