Date: 08/10/00
- Next message: Brendan W. McAdams: "Re: [PHP-DEV] Win32 Build troubles"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5879 Updated: switch() malfunction under very specific conditions"
- In reply to: Brendan W. McAdams: "[PHP-DEV] Re: ccvs extension source"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] Re: ccvs extension source"
- Reply: Zeev Suraski: "Re: [PHP-DEV] Re: ccvs extension source"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>> http://www.zend.com/-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Brendan W. McAdams: "Re: [PHP-DEV] Win32 Build troubles"
- Previous message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5879 Updated: switch() malfunction under very specific conditions"
- In reply to: Brendan W. McAdams: "[PHP-DEV] Re: ccvs extension source"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] Re: ccvs extension source"
- Reply: Zeev Suraski: "Re: [PHP-DEV] Re: ccvs extension source"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

