php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53506 Error in fpm_conf_set_integer
Submitted: 2010-12-09 13:40 UTC Modified: 2010-12-09 18:41 UTC
From: d dot hagen at mittwald dot de Assigned: fat (profile)
Status: Closed Package: FPM related
PHP Version: 5.3.3 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: d dot hagen at mittwald dot de
New email:
PHP Version: OS:

 

 [2010-12-09 13:40 UTC] d dot hagen at mittwald dot de
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

<<




Patches

COLLATION_CHARACTER_SET_APPLICABILITY (last revision 2020-07-30 22:21 UTC by Admin at gmail dot com)
fpm_conf_ignore_ts.patch (last revision 2010-12-09 12:58 UTC by d dot hagen at mittwald dot de)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-09 18:41 UTC] fat@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: fat
 [2010-12-09 18:41 UTC] fat@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

This has been corrected and will be available in the next release of PHP (5.3.4 
coming soon)
 [2020-07-30 22:21 UTC] Admin at gmail dot com
The following patch has been added/updated:

Patch Name: COLLATION_CHARACTER_SET_APPLICABILITY
Revision:   1596147695
URL:        https://bugs.php.net/patch-display.php?bug=53506&patch=COLLATION_CHARACTER_SET_APPLICABILITY&revision=1596147695
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 13:01:30 2024 UTC