ID:               38714
 Updated by:       [EMAIL PROTECTED]
 Reported By:      lehmann at cnm dot de
-Status:           Open
+Status:           Closed
 Bug Type:         *Configuration Issues
 Operating System: Linux 2.6.9-34.ELsmp
 PHP Version:      5.1.6
 New Comment:

5.2.0 will fix this situation by reverting to pre 5.1.x behaviour, only
CLI will not look up in current working directory. Other sapis such as
CGI will look in the current dir when searching for php.ini.


Previous Comments:
------------------------------------------------------------------------

[2006-09-05 14:23:08] axelseaa at modevia dot com

We have had similiar issues.  We run php cgi via suexec in a shared
hosting enviroment.  When we were using php 4, users could simply place
a php.ini folder in the same folder as the script being ran, and php
would parse that ini file and load the settings in it.

When we upgraded to php5, that functionality was no longer there and we
have not found any reason why it is gone.  I believe it is related to
the same issue being reported here.  If there is anythig you would like
me to try to attempt to sort out this issue.

------------------------------------------------------------------------

[2006-09-05 11:16:43] lehmann at cnm dot de

Since when isn't this the expected behaviour? It worked for _all_
previous PHP releases and millions of ISPs are running PHP as CGI
version behind a CGIwrapper. Customers need to be able to change
options for their local scripts. And they cannot put ini_set() calls in
all of their scripts and sometimes they even cannot change the scripts
due to arising checksum-problems if they are using encoders/decoders
like the ZendOptimizer.
Through the local php.ini someone that needs register_globals=on can
set it like this, while it is off by default. Or someone might need his
own libraries that he wants to include as an extension so he needs to
change the extension_dir and so on. There definetely is a use for this
feature so why has someone removed it? And why isn't the removal
mentioned in the changelog if it has been done by intention?

------------------------------------------------------------------------

[2006-09-05 11:01:16] [EMAIL PROTECTED]

This is expected behaviour, CGI doesn't look for php.ini in the current
directory, only CLI does that.

------------------------------------------------------------------------

[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.

------------------------------------------------------------------------

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

Reply via email to