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

 ID:               52086
 Updated by:       f...@php.net
 Reported by:      admin at saltwaterc dot net
 Summary:          No new line at the end of a included pool file crahes
                   the PHP FPM daemon
-Status:           Open
+Status:           Assigned
 Type:             Bug
 Package:          FPM related
 Operating System: *
 PHP Version:      5.3.2
-Assigned To:      
+Assigned To:      fat



Previous Comments:
------------------------------------------------------------------------
[2010-06-15 14:49:38] admin at saltwaterc dot net

Description:
------------
I have a script that automatically generates pool configurations based
on input parameters and a template configuration. It didn't used to
place a new line at the end of the generated configuration file which
degenerated into a hard to debug error as the daemon crashes without any
useful explanation. By adding a new line after the last configuration
line (in my example, php_admin_value[upload_tmp_dir] =
/home/example.com/tmp) everything works as expected.

Test script:
---------------
[example.com]

user = example.com

group = example.com

listen = /var/run/php-fpm/example.com.sock

pm = static

pm.max_children = 2

pm.max_requests = 10000

slowlog = /home/example.com/logs/fpm/slow.log

chdir = /home/example.com/docroot

php_admin_value[error_log] = /home/example.com/logs/fpm/error.log

php_admin_value[open_basedir] =
/home/example.com/docroot:/home/example.com/sessions:/home/example.com/tmp

php_admin_value[session.save_path] = /home/example.com/sessions

php_admin_value[upload_tmp_dir] = /home/example.com/tmp

Expected result:
----------------
Successful PHP FPM daemon start.

Actual result:
--------------
Starting php-fpm PHP:  syntax error, unexpected $end in Unknown on line
1

Jun 15 12:35:12.090707 [ERROR] Unable to include
/usr/local/zend/etc/fpm.d/example.com.ini from
/usr/local/zend/etc/php-fpm.conf at line 23

*** glibc detected *** /usr/local/zend/sbin/php-fpm: double free or
corruption (fasttop): 0x000000001ac80380 ***

+ backtrace

+ memory map


------------------------------------------------------------------------



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

Reply via email to