Michael B Allen wrote:
> The get_zend_version function returns a string like 'Zend Engine v1.3.0,
> Copyright (c) 1998-2004 Zend Technologies\n'. It would be nice to be
> able to get the ZEND_MODULE_API_NO (e.g. 20060613) the standard module
> was compiled under.
basic_function_module.zend_api might be what you're looking for.
> I'm still confused about how many versions of extensions I need to provide
> with my product. Currently I just compile it against late versions of 4,
> 5.0, 5.1 and 5.2 and hope for the best. But looking at ZEND_MODULE_API_NO
> changes in webcvs shows it changes more frequently than that.
>
> But so far I haven't ran into major problems with ZEND_MODULE_API_NO
> so maybe I'm just being paranoid. From looking at zend.c it looks like
> it will print diagnostic info if some tries to load an incompatible
> extension.
It looks like that:
mike@honeybadger:~$ php -n -dextension_dir=/usr/local/lib/php/extensions/no-debug-non-zts-20050922/ -dextension=ffi.so -v
PHP Warning: PHP Startup: ffi: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
--
Michael