Debian Developers - Confusion in zendapi of php4-cli and php4-dev

This is Interesting: Free IT Magazines  
Home > Archive > Debian Developers > August 2004 > Confusion in zendapi of php4-cli and php4-dev





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Confusion in zendapi of php4-cli and php4-dev
Uwe Steinmann

2004-08-20, 7:50 am

Hi,

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?

Uwe
--
MMK GmbH, Universitaetsstr. 11, 58097 Hagen
Uwe.Steinmann@mmk-hagen.de
Tel: +2331 840446 Fax: +2331 843920

Matthew Palmer

2004-08-22, 6:11 pm

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

Uwe Steinmann

2004-08-22, 6:11 pm

On Fri, Aug 20, 2004 at 11:05:57PM +1000, Matthew Palmer wrote:
> On Fri, Aug 20, 2004 at 12:01:32PM +0200, Uwe Steinmann wrote:
>
> 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).

Thanks. I used dh_pecl but a slightly different version which disregards
phpapi.

Uwe

--
MMK GmbH, Universitaetsstr. 11, 58097 Hagen
Uwe.Steinmann@mmk-hagen.de
Tel: +2331 840446 Fax: +2331 843920

Matthew Palmer

2004-08-22, 6:11 pm

On Fri, Aug 20, 2004 at 03:46:35PM +0200, Uwe Steinmann wrote:
> On Fri, Aug 20, 2004 at 11:05:57PM +1000, Matthew Palmer wrote:
> Thanks. I used dh_pecl but a slightly different version which disregards
> phpapi.


That version is old and buggy. Grab the one out of the BTS for a far better
version. And pester Joey so it'll go into debhelper proper.

- Matt

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com