#47778 [Opn->Csd]: parse_ini_file can't define array with name "on"
ID: 47778
Updated by: fa@php.net
Reported By: fabien dot meynard at supinfo dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: mac os x
PHP Version: 5.2.9
-Assigned To:
+Assigned To: fa
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2009-03-26 14:44:36] felipe@php.net
The keywords currently are: true, on, yes, false, off, no, none, null.
-> Documentation problem
------------------------------------------------------------------------
[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
Thread (2 messages)