|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50340 php.ini parser does not allow spaces in ini keys
Submitted: 2009-11-30 20:37 UTC Modified: 2009-11-30 22:38 UTC
From: dcgear at gmail dot com Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 5.3.1 OS: *
Private report: No CVE-ID:
 [2009-11-30 20:37 UTC] dcgear at gmail dot com
When using parse_ini_file or parse_ini_string and the key value contains the word "No" the following error is generated:

syntax error, unexpected BOOL_FALSE

Reproduce code:
parse_ini_string('No value="No value"');

Expected result:
No output or error message

Actual result:
syntax error, unexpected BOOL_FALSE in Unknown on line 1


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-30 22:38 UTC]
Automatic comment from SVN on behalf of jani
Log: - Fixed bug #50340 (php.ini parser does not allow spaces in ini keys)
 [2009-11-30 22:38 UTC]
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
Thank you for the report, and for helping us make PHP better.

 [2013-04-14 05:05 UTC] chaeril at live dot com
i use PHP Version 5.4.7 and when parsing name = *Z NULL Weapon* this error shows up
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Mon Nov 30 15:01:37 2015 UTC