Bug #60179 [PATCH]: wrong output with php_flag boolean
| From: | fat@php.net | Date: | Mon, 31 Oct 2011 13:00:41 +0000 |
| Subject: | Bug #60179 [PATCH]: wrong output with php_flag boolean | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164714@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60179&edit=1
ID: 60179
Patch added by: fat@php.net
Reported by: dbetz at df dot eu
Summary: wrong output with php_flag boolean
Status: Open
Type: Bug
Package: FPM related
Operating System: Gentoo Linux
PHP Version: 5.3.8
Block user comment: N
Private report: N
New Comment:
The following patch has been added/updated:
Patch Name: fpm-bug60179.patch
Revision: 1320066041
URL: https://bugs.php.net/patch-display.php?bug=60179&patch=fpm-bug60179.patch&revision=1320066041
Previous Comments:
------------------------------------------------------------------------
[2011-10-31 08:43:30] dbetz at df dot eu
Description:
------------
Hello,
when setting php_flag to Off or false, then PHP FPM sets it to the string "Off" rather
than 0 or NULL.
In fpm.conf
php_flag["session.auto_start"] = Off
or
php_flag["session.auto_start"] = false
It seems that the failure is on all boolean flags.
Test script:
---------------
<?
echo "session.auto_start is : " . ini_get('session.auto_start') .
"\n";
if (ini_get('session.auto_start')) {
echo "Some code here .....\n";
}
?>
Expected result:
----------------
session.auto_start is : 0
Actual result:
--------------
session.auto_start is : Off
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60179&edit=1