Re: ccvs extension source

From: Date: Thu, 10 Aug 2000 20:00:50 +0000
Subject: Re: ccvs extension source
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-28474@lists.php.net to get a copy of this message
"Brendan W. McAdams" wrote: > > For the most part, what I know of the Zend API is from the Chapter 9 > reference in "Web Application Development With PHP 4.0". > > The reccomended macros were the ZEND_* ones. > > I guess the questions at hand would be: > > 1) is the proper convention for code in the CVS to use the PHP_* macros? right now all function deklarations under ext/ use the PHP_* macros while those under Zend/ use the ZEND_* ones with the exception of your module even the ext_skel script generates template files with PHP_* macros, and as it it the official tool for the creation of new extensions it seems to be the RIGHT THING (tm) > 2) What difference if any is there between these macro sets? (For my own > personal edification). from a quick look at main/php.h and Zend/zend_API.h the only difference i see is that they prepend different prefixes to the function names you provide the c implementaton of a PHP_FUNCTION(name) becomes php_if_name() while a ZEND_FUNCTION(name) becomes zend_if_name() and, bye the way, the macros contianing _NAMED_ do not change the name you provided, so a php function name() would be implemented in a C function name(), that might be the problem you reported in ccvs.c > I would be more than happy to change them if they should be PHP_* calls. -- Hartmut Holzgraefe hartmut@six.de http://www.six.de +49-711-99091-77 fax:-99

« previous php.dev (#28474) next »