[php-maint] Bug#595761: Add [PHP] section to all parsed extension ini files

Fabian Grutschus f.grutschus at lubyte.de
Mon Sep 6 13:30:31 UTC 2010


Package: php-common
Version: 5.3.2-2

Debian uses /etc/php5/cgi/conf.d for loading PHP extensions and
Zend extension through ini files. If someone uses PHPs ini sections (see
http://www.php.net/ini.sections) inside an own ini file in
/etc/php5/cgi/conf.d or in
/etc/php5/cgi/php.ini this will prevent the extensions from loading.

The PHP manual says:
"These sections are used only in CGI/FastCGI mode and they can not set
extension and zend_extension directives."
So extension= and zend_extension= needs to be under [PHP].

Steps to Reproduce:
1. Use PHP over Apache/Lighttpd as CGI
2. Add [PATH=] or [HOST=] to /etc/php5/cgi/php.ini (or an own file at
/etc/php5/cgi/conf.d)
3. See phpinfo() for loaded extensions
4. extensions loaded at /etc/php5/cgi/conf.d won't be loaded

Actual results:
For example the widely used pdo extension (/etc/php5/cgi/conf.d/pdo.ini):
; configuration for php PDO module
extension=pdo.so

Expected results:
[PHP]
; configuration for php PDO module
extension=pdo.so

Additional info: http://www.php.net/manual/en/ini.sections.php#99780,
https://bugzilla.redhat.com/show_bug.cgi?id=630635




More information about the pkg-php-maint mailing list