Bug #52786 [NEW]: PHP should reset section to [PHP] after ini sections

From: Date: Mon, 06 Sep 2010 18:39:20 +0000
Subject: Bug #52786 [NEW]: PHP should reset section to [PHP] after ini sections
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-154122@lists.php.net to get a copy of this message
From: Operating system: Linux PHP version: 5.3.3 Package: Dynamic loading Bug Type: Bug Bug description:PHP should reset section to [PHP] after ini sections Description: ------------ Many distributions use config-file-scan-dir configure option to set a custom config scan directory. When PHP ini sections are used in the main php.ini, or in an ini file at the config-file-scan-dir, the following ini files can't use extension= or zend_extenstion=. This prevents PHP modules from being loaded and breaks many distribution packages. Tested with Debian (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595761) and Fedora (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595761). See also my comment here: http://www.php.net/manual/en/ini.sections.php#99780 Please clarify if this is a PHP bug or any following ini must use [PHP]. Test script: --------------- on Fedora: # php -m | wc -l 73 # echo "[PATH=/usr]" >/etc/php.d/test.ini # php -m | wc -l 65 Expected result: ---------------- automatic set ini section back to [PHP] after [PATH=] or [HOST=] Actual result: -------------- [PATH=] or [HOST=] prevents any following extension or zend_extension config option. -- Edit bug report at http://bugs.php.net/bug.php?id=52786&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52786&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52786&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52786&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52786&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52786&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52786&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52786&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52786&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52786&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52786&r=support Expected behavior: http://bugs.php.net/fix.php?id=52786&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52786&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52786&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52786&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52786&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52786&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52786&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52786&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52786&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52786&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52786&r=mysqlcfg

« previous php.bugs (#154122) next »