Bug #53506 [NEW]: Error in fpm_conf_set_integer

From: Date: Thu, 09 Dec 2010 12:40:37 +0000
Subject: Bug #53506 [NEW]: Error in fpm_conf_set_integer
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-156837@lists.php.net to get a copy of this message
From:             
Operating system: Linux 
PHP version:      5.3.3
Package:          FPM related
Bug Type:         Bug
Bug description:Error in fpm_conf_set_integer

Description:
------------
The following configuration directive 

>>
pm.max_children = 15[:space:]
<<

fails with  "unable to parse value for entry 'pm.max_children':  is not a
valid number (greater or equal than zero)". The [:space:] causes the
error.

fpm_conf.c -> fpm_conf_set_integer -> val[0] = '1' ,val[1]='5'
,val[2]=' '

generally the parser should ignore whitespace and tab values (hm..bug or
feature?)

Test script:
---------------
insert the following in the fpm.conf

>>

pm = dynamic

pm.max_children = 150

pm.start_servers =      10
pm.min_spare_servers =          10
pm.max_spare_servers =   20

<<




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



Thread (3 messages)

« previous php.bugs (#156837) next »