From:             
Operating system: CentOS 5.5
PHP version:      5.3.2
Package:          FPM related
Bug Type:         Bug
Bug description:Incorrect php.ini file detection

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 bug report at http://bugs.php.net/bug.php?id=52045&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=52045&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=52045&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=52045&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=52045&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52045&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=52045&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=52045&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=52045&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=52045&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=52045&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=52045&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=52045&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=52045&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=52045&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=52045&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=52045&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=52045&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=52045&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=52045&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=52045&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=52045&r=mysqlcfg

Reply via email to