php.net |  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
Description:
------------
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-30 22:38 UTC] svn@php.net
Automatic comment from SVN on behalf of jani
Revision: http://svn.php.net/viewvc/?view=revision&revision=291525
Log: - Fixed bug #50340 (php.ini parser does not allow spaces in ini keys)
 [2009-11-30 22:38 UTC] jani@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.


 [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-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 17 21:01:56 2014 UTC