#38714 [Opn->Fbk]: local php.ini not recognized
| From: | tony2001@php.net | Date: | Mon, 04 Sep 2006 17:53:00 +0000 |
| Subject: | #38714 [Opn->Fbk]: local php.ini not recognized | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-101720@lists.php.net to get a copy of this message | ||
ID: 38714
Updated by: tony2001@php.net
Reported By: lehmann at cnm dot de
-Status: Open
+Status: Feedback
Bug Type: *Configuration Issues
Operating System: Linux 2.6.9-34.ELsmp
PHP Version: 5.1.6
New Comment:
Works perfectly fine here.
Please run
php -i | grep "php\.ini".
Previous Comments:
------------------------------------------------------------------------
[2006-09-04 17:00:18] lehmann at cnm dot de
It would be helpful to know what you are missing.
try the following steps:
Put register_globals=off in the global php.ini.
Put a local php.ini with register_globals=on into e.g. /test.
Save a script with
<?
phpinfo();
?>
as /test/script.php
Run the command line version of php like /usr/local/bin/php
/test/script.php.
phpinfo() will give you register_globals=off. It will also not show you
any other options you have put into the local php.ini like change of
extension dirs etc.
safe mode is off.
------------------------------------------------------------------------
[2006-09-04 16:02:52] tony2001@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2006-09-04 15:59:53] lehmann at cnm dot de
Description:
------------
We use PHP as command line version. Usually first the global php.ini
(in PREFIX/lib/php) is parsed and evaluated, then PHP looks for a local
php.ini in the directory of the php-file that will be executed to look
for options that may override the global options.
This can be used e.g. to enable register_globals for a certain user.
In php-5.1.6 the local php.ini isn't recognized or at least the options
in there aren't evaluated. This worked fine even in the command line
versions of older php releases (php4 or php 5.0.x).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38714&edit=1