|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53894 parse_ini_string('no="test"') unexpected BOOL_FALSE
Submitted: 2011-01-31 19:24 UTC Modified: 2011-01-31 21:40 UTC
From: Assigned:
Status: Not a bug Package: Strings related
PHP Version: 5.3.5 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2011-01-31 19:24 UTC]
When using parse_ini_string or parse_ini_file, if you have the key as "no" it 
causes a syntax error, unexpected BOOL_FALSE.

Test script:
<?php parse_ini_string('no="test"')?>

Expected result:

Actual result:
<br /> 
<b>Warning</b>:  syntax error, unexpected BOOL_FALSE in Unknown on line 1
 in <b>/home/.../no.php</b> on line <b>1</b><br /> 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-31 21:40 UTC]
-Status: Open +Status: Bogus
 [2011-01-31 21:40 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

This is expected... See the 'notes' section on parse_ini_string() documentation:
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 19:01:38 2024 UTC