#47778 [NEW]: parse_ini_file can't define array with name "on"
[email protected] ("fabien dot meynard at supinfo dot com")
| Newsgroups | php.bugs |
|---|---|
| Message-ID | <[email protected]> |
From: fabien dot meynard at supinfo dot com
Operating system: mac os x
PHP version: 5.2.9
PHP Bug Type: Unknown/Other Function
Bug description: parse_ini_file can't define array with name "on"
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 bug report at http://bugs.php.net/?id=47778&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47778&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47778&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47778&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47778&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47778&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47778&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47778&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47778&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47778&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47778&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47778&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47778&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47778&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47778&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47778&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47778&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47778&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47778&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47778&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47778&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47778&r=mysqlcfg