From: php at lachoseinteractive dot net
Operating system: RedHat 7.2
PHP version: 5.0.3
PHP Bug Type: *Configuration Issues
Bug description: php.ini given to --with-config-file-path is not used
Description:
------------
./configure --with-mysqli=/usr/bin/mysql_config --
enable-bcmath --enable-sqlite-utf8 --with-apxs2=/usr/
local/apache2/bin/apxs --with-config-file-path=/etc/
php.ini
The php.ini is not used. Tried different locations.
Similar problem in cli and apache module version.
Looks like it is overriden by a previous install ? (php4
is installed as an apache1.3 module in another instance
of apache, but removing php4's ini file doesn't resolve
the problem).
Reproduce code:
---------------
I set magic_quotes_gpc to Off in the php.ini.
The change doesn't appear in the phpinfo(); (after apachectl restart of
course).
Same problem in CLI version :
I tried this :
> php -i | grep magic_quotes_gpc
magic_quotes_gpc => On => On
But here is the funny part :
> php -i | grep php.ini
Configuration File (php.ini) Path => /etc/php.ini
and :
> php -i -c /etc/php.ini| grep magic_quotes_gpc
magic_quotes_gpc => Off => Off
!!!!
Interestingly, ltrace on php CLI gives the following :
ltrace -e fopen php
fopen("php/php-cli.ini", "r") = 0
fopen("/etc/php.ini/php-cli.ini", "r") = 0
fopen("php/php.ini", "r") = 0
fopen("/etc/php.ini/php.ini", "r") = 0
As you can imagine, I tried to compile with --with-config-file-path=/etc
but got the same results !
Don't know how to trace fopen in php running as module, but that would be
interesting !
--
Edit bug report at http://bugs.php.net/?id=31485&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31485&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=31485&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=31485&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31485&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31485&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31485&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31485&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31485&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31485&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31485&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=31485&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=31485&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31485&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31485&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31485&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31485&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31485&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31485&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31485&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31485&r=mysqlcfg