|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-11 03:22 UTC] jed@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 11:00:02 2025 UTC |
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 !