#20887 [Com]: /php.ini
| From: | oden dot eriksson at linux-mandrake dot com | Date: | Tue, 10 Dec 2002 05:39:29 +0000 |
| Subject: | #20887 [Com]: /php.ini | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-27235@lists.php.net to get a copy of this message | ||
ID: 20887
Comment by: oden.eriksson@linux-mandrake.com
Reported By: oden.eriksson@linux-mandrake.com
Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Mandrqke Linux 9.0
PHP Version: 4.3.0RC2
New Comment:
I have now tried this using apache_1.3.27 + php-4.2.3 (from Mandrake
Cooker) and are experiencing the same thing. I have no idea how to
debug this further, all I can say is if /php.ini exists, values from
that one shows up from phpinfo() called from a php file. I just
stumbled upon this by accident.
Previous Comments:
------------------------------------------------------------------------
[2002-12-08 22:14:46] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2002-12-08 16:22:17] michael.mauch@gmx.de
I can't see that /php.ini is used here, but php/php-cli.ini is used,
i.e. a file relative to the place from where PHP was started.
With PHPRC=/xizzy I get:
# strace -eopen php -r 'echo "bla";' 2>&1|grep ini
open("php/php-cli.ini", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file
or directory)
open("/xizzy/php-cli.ini", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such
file or directory)
open("/usr/local/lib/php-cli.ini", O_RDONLY|O_LARGEFILE) = 3
open("/usr/local/lib/php/browscap/browscap.ini", O_RDONLY|O_LARGEFILE)
= 3
And if php/php-cli.ini is there, PHP only reads that one. This is with
4.3.0-cvs from today, and I don't have Mandrake here (once upon a time,
it was a SuSE Linux).
------------------------------------------------------------------------
[2002-12-08 14:53:59] oden.eriksson@linux-mandrake.com
If /php.ini exists, that one is used no matter what PHPRC env is set or
compiled in when starting up apache from a SysV script. Is it a bug in
php, or could it be the Mandrake Linux 9.0 system?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20887&edit=1