[php-maint] Bug#443390: php5-cgi: -c config file settings overriden by global config
cat at zip.com.au
Fri Sep 21 01:00:12 UTC 2007
It would appear that php5-cgi reads the file specified by -c first,
parses it and then follows it up with the global config files
(/etc/php5/...). The end effect of this is that there is no way to
override the globals for, say, some site or some other use via this
option and as such makes it rather useless.
I confirmed this by running php5-cgi -c ... first and verifying the
config reported by phpinfo(). None of the desired changes were
registered. I then did an mv /etc/php5 /etc/php5.old and ran php5-cgi -c
... again and verified. The desired changes were present then.
I believe simply switching the order the config files are read/parsed
in would fix this.
-- System Information:
Debian Release: 4.0
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 126.96.36.199
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
More information about the pkg-php-maint