php.net |  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: hm2k@php.net Assigned:
Status: Not a bug Package: Strings related
PHP Version: 5.3.5 OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: hm2k@php.net
New email:
PHP Version: OS:

 

 [2011-01-31 19:24 UTC] hm2k@php.net
Description:
------------
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:
----------------
NULL

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 /> 

Patches

Pull Requests

History

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

This is expected... See the 'notes' section on parse_ini_string() documentation: http://docs.php.net/parse-ini-string
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 06:01:30 2024 UTC