#45991 [Com]: parse_ini_file returns empty array if config.ini is saved as UTF-8
| From: | ckl at ecw dot de | Date: | Fri, 05 Sep 2008 06:49:33 +0000 |
| Subject: | #45991 [Com]: parse_ini_file returns empty array if config.ini is saved as UTF-8 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-128717@lists.php.net to get a copy of this message | ||
ID: 45991
Comment by: ckl at ecw dot de
Reported By: ckl at ecw dot de
Status: Feedback
Bug Type: *Configuration Issues
Operating System: Windows XP SP 3
PHP Version: 5.3.0alpha2
New Comment:
config.ini was saved as UTF-8 with BOM.
Previous Comments:
------------------------------------------------------------------------
[2008-09-04 14:30:18] tularis@php.net
changing to configuration issue
------------------------------------------------------------------------
[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