Bug #69851 [NEW]: Can't set env[] variables in php-fpm.conf to String "yes" or "no"

From: Date: Tue, 16 Jun 2015 16:53:37 +0000
Subject: Bug #69851 [NEW]: Can't set env[] variables in php-fpm.conf to String "yes" or "no"
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193572@lists.php.net to get a copy of this message
From: rainer-phpbugs at 7val dot com Operating system: Linux PHP version: 5.6.10 Package: FPM related Bug Type: Bug Bug description:Can't set env[] variables in php-fpm.conf to String "yes" or "no" Description: ------------ Setting env[NSS_SDB_USE_CACHE] = no in php-fpm.conf results in a startup error ERROR: [.../php-fpm.conf:365] empty value and php-fpm fails to start. The same behaviour is shown for "false" instead of "no". Setting env[NSS_SDB_USE_CACHE] = yes in php-fpm.conf shows in phpinfo() as _ENV["NSS_SDB_USE_CACHE"] 1 instead of the expected "yes". "true" has identical results. Other arbitrary strings, such as "foo" show up unchanged in $_ENV. Expected result: ---------------- One should be able to assign arbitrary values to environment variables including "yes", "no", "false" or "true". Unless security considerations prevent it, allowable values should include whitespace (including leading and trailing), including line breaks. -- Edit bug report at https://bugs.php.net/bug.php?id=69851&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69851&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69851&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69851&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69851&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69851&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69851&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69851&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69851&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69851&r=support Expected behavior: https://bugs.php.net/fix.php?id=69851&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69851&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69851&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69851&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69851&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69851&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69851&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69851&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69851&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69851&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69851&r=mysqlcfg

« previous php.bugs (#193572) next »