ID: 26735
User updated by: cmouse at youzen dot projectb2 dot net
Reported By: cmouse at youzen dot projectb2 dot net
-Status: Feedback
+Status: Open
Bug Type: PHP options/info functions
Operating System: Linux 2.4.23
PHP Version: 4.3.4
New Comment:
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)
Previous Comments:
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
[2003-12-28 19:48:22] cmouse at youzen dot projectb2 dot net
Ah and here are mod_php clips:
Configuration File (php.ini) Path /etc/php/php.ini
cat /etc/php/php.ini | grep upload_tmp_dir
upload_tmp_dir = "/www/tmp"
upload_tmp_dir no value no value
------------------------------------------------------------------------
[2003-12-28 19:45:55] cmouse at youzen dot projectb2 dot net
Ok.
Here goes:
php -r 'phpinfo();' | grep php.ini
Configuration File (php.ini) Path => /etc/php/php.ini
cat /etc/php/php.ini | grep upload_tmp_dir
upload_tmp_dir = "/www/tmp"
php -r 'phpinfo();' | grep upload_tmp_dir
upload_tmp_dir => no value => no value
------------------------------------------------------------------------
[2003-12-28 19:40:28] [EMAIL PROTECTED]
Works fine for me:
19:49:41([EMAIL PROTECTED])[~/src/php-4.3.4]> ./sapi/cli/php -r
'phpinfo();' | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib/php.ini
19:49:48([EMAIL PROTECTED])[~/src/php-4.3.4]> cat /usr/local/
lib/php.iniupload_tmp_dir = /www/tmp
19:49:57([EMAIL PROTECTED])[~/src/php-4.3.4]> ./sapi/cli/php -r
'phpinfo();' | grep upload_tmp_dir
upload_tmp_dir => /www/tmp => /www/tmp
Again, 10-1 your php.ini is not what you expect it is.
Please repeat the above steps on your system, If you are
running this as mod_php, make steps 1 and 3 be clips from
the html dump.
------------------------------------------------------------------------
[2003-12-28 19:15:35] cmouse at youzen dot projectb2 dot net
I'll paste the thing I'm trying to modify:
### php.ini ###
; Temporary directory for HTTP uploaded files (will use system default
if not
; specified).
upload_tmp_dir = /www/tmp
### phpinfo() ###
upload_tmp_dir no value no value
------------------------------------------------------------------------
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