ID: 38714
Updated by: [EMAIL PROTECTED]
Reported By: lehmann at cnm dot de
-Status: Open
+Status: Bogus
Bug Type: *Configuration Issues
Operating System: Linux 2.6.9-34.ELsmp
PHP Version: 5.1.6
New Comment:
This is expected behaviour, CGI doesn't look for php.ini in the current
directory, only CLI does that.
Previous Comments:
------------------------------------------------------------------------
[2006-09-05 10:56:21] lehmann at cnm dot de
I never said that I'm using CLI. I said "command line version", not
"command line interface". However, while the problem may not exist in
the CLI version, it exists in the CGI version. So I hope someone can
fix it.
------------------------------------------------------------------------
[2006-09-05 08:04:43] [EMAIL PROTECTED]
You are using CGI instead of CLI.
------------------------------------------------------------------------
[2006-09-05 00:05:33] lehmann at cnm dot de
But it doesn't work here and other users in the mailinglist have the
problem. pwd is the directory of the script.
php -i | grep php.ini
<tr><td class="e">Configuration File (php.ini) Path </td><td
class="v">/usr/local/php-5.1.6/lib/php.ini </td></tr>
Global php.ini defines register_globals=off, local php.ini defines
register_globals=on
php -i | grep register_globals
<tr><td class="e">register_globals</td><td class="v">Off</td><td
class="v">Off</td></tr>
So the options of the local php.ini haven't become effective.
The is no ZendOptimizer, Ioncube or anything like loaded.
------------------------------------------------------------------------
[2006-09-04 17:53:00] [EMAIL PROTECTED]
Works perfectly fine here.
Please run `php -i | grep "php\.ini"`.
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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/38714
--
Edit this bug report at http://bugs.php.net/?id=38714&edit=1