Re: Re: ccvs extension source

From: Date: Thu, 10 Aug 2000 20:54:28 +0000
Subject: Re: Re: ccvs extension source
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-28485@lists.php.net to get a copy of this message
At 04:22 PM 8/10/00 -0400, Brendan W. McAdams wrote:
On this note, is zval the proper construct for ext/ modules or is it pval ?
pval was kept around for backwards compatibility with PHP 3. I think most PHP module developers prefer using zval because it indicates that the code is really aware of the fact that the PHP 4 zval isn't exactly the same as the PHP 3 pval. But it is a matter of taste and right now you can go both ways. Most of the PHP API has been kept around (see php3_compat.h) in order to allow for a smoother move to PHP 4. I think the main motivation to use the Zend API functions is if some open-source project (for example possibly MySQL sometime in the future) where to use the Zend Engine as its scripting engine that project with permission from the PHP Group could use some PHP extension modules and not have to write their own. In this case using the Zend API makes more sense. But this is really not important until something like this comes up. Right now do what you prefer. Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.dev (#28485) next »