Bug #53894 [Opn->Bgs]: parse_ini_string('no="test"') unexpected BOOL_FALSE
| From: | felipe@php.net | Date: | Mon, 31 Jan 2011 20:40:45 +0000 |
| Subject: | Bug #53894 [Opn->Bgs]: parse_ini_string('no="test"') unexpected BOOL_FALSE | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-158376@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53894&edit=1
ID: 53894
Updated by: felipe@php.net
Reported by: hm2k@php.net
Summary: parse_ini_string('no="test"') unexpected BOOL_FALSE
-Status: Open
+Status: Bogus
Type: Bug
Package: Strings related
PHP Version: 5.3.5
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2011-01-31 19:24:08] 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 />
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53894&edit=1