ID: 26735 Comment by: ahmed at googgun dot com Reported By: cmouse at youzen dot projectb2 dot net Status: Bogus Bug Type: PHP options/info functions Operating System: Linux 2.4.23 PHP Version: 4.3.4 New Comment:
ran into the same problem :) ... the documentation (specifically ./configure --help) is unclear, as well phpinfo() is unclear as it labels the value supplied with --with-config-file-path as Configuration File (php.ini) Path, and typically Path of a file would include the filename. Request that the flag be renamed --with-config-file-dir and the corrosponding phpinfo() label be changed as well... i suspect that labels is trivial compared to making the programs obey the labels. Cheers. Previous Comments: ------------------------------------------------------------------------ [2004-01-07 21:12:03] [EMAIL PROTECTED] User error -> not bug. ------------------------------------------------------------------------ [2004-01-07 04:04:09] cmouse at youzen dot projectb2 dot net The 'files' are directories. No vendor-specific php would use /etc/php/php.ini/php.ini... The "problem" is simply that when I configured php with ./configure the unclear configure help text fooled me. ------------------------------------------------------------------------ [2003-12-29 20:18:44] [EMAIL PROTECTED] That strace doesn't indicate that any of the files were found. Those locations are typical for many vendor distributed php's are you sure that the php you are running is the one you installed and not the vendor-distributed one? ------------------------------------------------------------------------ [2003-12-29 08:20:59] cmouse at youzen dot projectb2 dot net The problem was that PHP tells me it is using /etc/php/php.ini as FILE, when this is PATH. Suprise suprise, it tries to read /etc/php/php.ini/php.ini, which is not what I expected. A more clearer configure item would be nice (and output of phpinfo()): The strace readout: $ strace -eopen php -r '' 2>&1 | grep ini open("php/php-cli.ini", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/php/php.ini/php-cli.ini", O_RDONLY) = -1 ENOTDIR (Not a directory) open("php/php.ini", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/php/php.ini/php.ini", O_RDONLY) = -1 ENOTDIR (Not a directory) ------------------------------------------------------------------------ [2003-12-28 22:39:04] [EMAIL PROTECTED] what does this (with correct path substiitution) return you: strace -eopen ./sapi/cli/php -r '' 2>&1 | grep ini ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/26735 -- Edit this bug report at http://bugs.php.net/?id=26735&edit=1