Bug #52045 [Asn]: Incorrect php.ini file detection
| From: | pajoye@php.net | Date: | Tue, 15 Jun 2010 10:02:57 +0000 |
| Subject: | Bug #52045 [Asn]: Incorrect php.ini file detection | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-151493@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52045&edit=1
ID: 52045
Updated by: pajoye@php.net
Reported by: FractalizeR at yandex dot ru
Summary: Incorrect php.ini file detection
Status: Assigned
Type: Bug
Package: FPM related
Operating System: CentOS 5.5
PHP Version: 5.3.2
Assigned To: fat
New Comment:
cd php-src
patch < patchfile
Previous Comments:
------------------------------------------------------------------------
[2010-06-15 11:59:29] FractalizeR at yandex dot ru
How do I correctly apply it?
patch -d <php-source-dir> -i <patch-file-name> ?
------------------------------------------------------------------------
[2010-06-11 14:11:29] fat@php.net
Can you please try the attached patch on trunk ?
It must be also working on branche/PHP_5_3.
++ jerome
------------------------------------------------------------------------
[2010-06-11 14:10:14] fat@php.net
The following patch has been added/updated:
Patch Name: php_main_php_ini.c-fpm-cgi.patch
Revision: 1276258214
URL:
http://bugs.php.net/patch-display.php?bug=52045&patch=php_main_php_ini.c-fpm-cgi.patch&revision=1276258214
------------------------------------------------------------------------
[2010-06-11 11:02:04] FractalizeR at yandex dot ru
Description:
------------
If there is a file or directory named php.ini in the current directory
and you start php-fpm from within this directory, phpinfo() output
shows, that php-fpm is trying to use this file/directory as main
configuration file for all it's children.
The case with such php.ini being a file seems to be undocumented and
unwanted behavior because by default [prefix]/lib/php.ini should be
used.
The case with php.ini being a directory leads to all php settings to be
silently reverted to their defaults. No error message is shown about
that php.ini is not a file or does not exist or whatever.
Test script:
---------------
cd ~
mkdir php.ini
php-fpm
After that open a page, containing phpinfo(); line and check php.ini
settings section.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52045&edit=1