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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Mar 29 01:01:28 2024 UTC