php INI file reader parses "Off" as ""
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php |
Unknown
|
Unknown
|
|||
php-defaults (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
If I put "session.
[Test Case]
$ sudo apt install php-cli
$ echo "session.
$ php -c .user.ini -r 'echo "session.
session.
When "0" is used instead of "Off", everything works properly:
$ cat .user.ini
session.
$ php -c .user.ini -r 'echo "session.
session.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: php (not installed)
ProcVersionSign
Uname: Linux 4.4.0-101-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.13
Architecture: amd64
Date: Tue Nov 28 02:40:42 2017
InstallationDate: Installed on 2011-04-14 (2419 days ago)
InstallationMedia: Ubuntu-Server 10.04.2 LTS "Lucid Lynx" - Release amd64 (20110211.1)
SourcePackage: php-defaults
UpgradeStatus: Upgraded to xenial on 2016-07-30 (485 days ago)
description: | updated |
I believe it's this issue upstream, filed in 2010: https:/ /bugs.php. net/bug. php?id= 52168