[PATCH] #52045: FPM tries to open php.ini from the current dir
| From: | Jérôme Loyet | Date: | Tue, 24 Aug 2010 18:03:56 +0000 |
| Subject: | [PATCH] #52045: FPM tries to open php.ini from the current dir | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-49496@lists.php.net to get a copy of this message | ||
hi,
when looking at the bug http://bugs.php.net/52045, I figure
out that
the CLI sapi need to not check php.ini in the current directory (in
main/php_ini.c from line 436 to line 442). I need to change this file
to make FPM another exception by not adding cwd in the php.ini search
path.
When talking with johannes, he wondered "we can make this a flag in
sapi_globals_struct. so sapi-related stuff can be done in the sapi
without touching main/. This might only be done in trunk.".
I attached a patch which do this on the bug report.
Do you think it's a good idea and I can commit it into trunk ?
Moreover, does the CGI sapi need the same correction ?
Thx
++ Jerome