Edit report at http://bugs.php.net/bug.php?id=52045&edit=1

 ID:               52045
 Updated by:       f...@php.net
 Reported by:      FractalizeR at yandex dot ru
 Summary:          Incorrect php.ini file detection
-Status:           Open
+Status:           Assigned
 Type:             Bug
 Package:          FPM related
 Operating System: CentOS 5.5
 PHP Version:      5.3.2
-Assigned To:      
+Assigned To:      fat



Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to