#47778 [Opn]: parse_ini_file can't define array with name "on"
| From: | felipe@php.net | Date: | Thu, 26 Mar 2009 14:44:36 +0000 |
| Subject: | #47778 [Opn]: parse_ini_file can't define array with name "on" | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-2049@lists.php.net to get a copy of this message | ||
ID: 47778
Updated by: felipe@php.net
Reported By: fabien dot meynard at supinfo dot com
Status: Open
-Bug Type: Unknown/Other Function
+Bug Type: Documentation problem
Operating System: mac os x
PHP Version: 5.2.9
New Comment:
The keywords currently are: true, on, yes, false, off, no, none, null.
-> Documentation problem
Previous Comments:
------------------------------------------------------------------------
[2009-03-25 22:26:34] fabien dot meynard at supinfo dot com
Description:
------------
When we use parse_ini_file function, we can't define a array with name
"on"
But we can't find any reference of an reserver-keyword "on" in
documentation
Reproduce code:
---------------
myArray[] = "php is good"
myArray[] = "asp is not good"
on[] = "linux"
on[] = "macos X"
print_r(parse_ini_file('file.ini'));
Expected result:
----------------
array(
[myArray] => Array
(
[0] => "php is good"
[1] => "asp is not good"
)
[on] => Array
(
[0] => "linux"
[1] => "macos X"
)
)
Actual result:
--------------
Warning: Error parsing file.ini on line 41 in index.php on line 2
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47778&edit=1