From: Operating system: Linux PHP version: 5.3.2 Package: FPM related Bug Type: Bug Bug description:FPM crashes if the include is enabled, but there are no files
Description: ------------ If the include configuration option is enabled, but the pool directory is empty, php-fpm crashes pretty ugly. I could manage to enable the service by creating an empty default.conf file within the fpm.d directory, but obviously this isn't the solution. The used FPM is the latest trunk indicated by php-fpm.org http://svn.php.net/repository/php/php-src/trunk/sapi/fpm. Test script: --------------- The include line is: include=/usr/local/zend/etc/fpm.d/*.conf r...@test-lucid:/usr/local/zend/etc/fpm.d# ls -la total 8 drwxr-sr-x 2 root zend 4096 May 12 11:59 . drwxrwsr-x 7 root zend 4096 May 12 11:59 .. r...@test-lucid:/usr/local/zend/etc/fpm.d# Expected result: ---------------- To be able to start the php-fpm service just with the default pool from php-fpm.conf if fpm.d is empty. In my humble opinion the application shouldn't crash if no pattern is matched. Actual result: -------------- May 12 12:10:52.239695 [ERROR] Nothing match the include pattern '/usr/local/zend/etc/fpm.d/*.conf' from /usr/local/zend/etc/php-fpm.conf at line 10. The backtrace is quite useless since the error is generated by sapi/fpm/fpm/fpm_conf.c, after the glob() call. -- Edit bug report at http://bugs.php.net/bug.php?id=51799&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51799&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51799&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51799&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51799&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51799&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51799&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51799&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51799&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51799&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51799&r=support Expected behavior: http://bugs.php.net/fix.php?id=51799&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51799&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51799&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51799&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51799&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51799&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51799&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51799&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51799&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51799&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51799&r=mysqlcfg