#45991 [Fbk]: parse_ini_file returns empty array if config.ini is saved as UTF-8
ID: 45991
Updated by: tularis@php.net
Reported By: ckl at ecw dot de
Status: Feedback
-Bug Type: Filesystem function related
+Bug Type: *Configuration Issues
Operating System: Windows XP SP 3
PHP Version: 5.3.0alpha2
New Comment:
changing to configuration issue
Previous Comments:
------------------------------------------------------------------------
[2008-09-04 14:29:19] tularis@php.net
Would that be UTF-8 with the BOM? or without?
------------------------------------------------------------------------
[2008-09-04 10:13:38] ckl at ecw dot de
Description:
------------
parse_ini_file returns an empty array while trying to parse any
ini-file which is saved as UTF-8.
ISO-8859-1 saved ini-files works as expected.
Reproduce code:
---------------
; Saved as UTF-8
[production]
application.base_url =
application.data_url = "data"
database.type = pdo_mysql
database.host = 192.168.0.78
database.username = root
database.password =
database.name = blog
Expected result:
----------------
Get an array..
Actual result:
--------------
array()
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45991&edit=1
Thread (7 messages)