[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Confusion in zendapi of php4-cli and php4-dev



On Fri, Aug 20, 2004 at 12:01:32PM +0200, Uwe Steinmann wrote:
> while creating a debian package for a php4 extension I encountered a
> possible mismatch in the zendapi of php4-cli and php4-dev. Both have
> version 4.3.8-6.
> 
> php4-cli provides phpapi-20020918
> 
> but /usr/include/php4/Zend/zend_modules.h (which is part of php4-dev)
> is for zendapi 20020429
> 
> line 88 of that file:
> #define ZEND_MODULE_API_NO 20020429
> 
> When I build the debian package for the extension I automatically
> extract the zendapi from /usr/include/php4/Zend/zend_modules.h
> and create a dependency on phpapi-<zendapi from zend_modules.h>.
> Since the two api numbers don't match, my debian package cannot
> be installed.
> 
> Am I missing something or is this a bug?

You're missing the fact that zendapi != phpapi.  You want the
PHP_API_VERSION from /usr/include/php4/main/php.h.  Or else the debhelper
module dh_pecl, which is still languishing in the debhelper bug list
(#238834).

- Matt

Attachment: signature.asc
Description: Digital signature


Reply to: