[php-maint] Bug#321283: php5: SAPIs packages should provide zendmoduleapi-NN than phpapi-NN

Piotr Roszatycki dexter at debian.org
Thu Aug 4 16:46:34 UTC 2005

Package: php5
Version: 5.0.4-3
Severity: minor

I think the php5-SAPI packages should provide
phpapi-NN, zendmoduleapi-NN and zendextensionapi-NN
virtual packages.

The zendmoduleapi_version defines API for PHP extension modules, the
zendextensionapi_version defines API for Zend extension modules. 

The zendextensionapi_version is not important for PHP extensions. The
change of this value shouldn't force to recompile PHP extension package.

phpapi_version is used only internally and doesn't matter.

The current alghoritm (pick the greatest number and generate own phpapi
version) is misleading as far as `php -i' and `phpize --version' reports
completly different version. It makes a troubles in future when will be
available some package with ZEND extension and makes diagnostic harder
as far as dl() function reports ZEND_MODULE_API_NO in error message if
this value doesn't compare between PHP and extension.

My proposition:

The PHP extension packages should depends on zendmoduleapi-NN, the ZEND
extension packages should depends on zendextensionapi-NN. Please, do not
mix these values.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'oldstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages php5 depends on:
ii  libapache-mod-php5 5.0.999-5.1.0b3-0.0.1 HTML-embedded scripting language (
ii  libapache2-mod-php 5.0.4-3               server-side, HTML-embedded scripti
ii  php5-cgi           5.0.4-3               server-side, HTML-embedded scripti
ii  php5-common        5.0.4-3               Common files for packages built fr
ii  php5.1-common [php 5.0.999-5.1.0b3-0.0.1 common files for packages built fr

php5 recommends no packages.

-- no debconf information

More information about the pkg-php-maint mailing list