#45991 [Opn->Fbk]: parse_ini_file returns empty array if config.ini is saved as UTF-8

From: Date: Thu, 04 Sep 2008 14:29:19 +0000
Subject: #45991 [Opn->Fbk]: 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-128678@lists.php.net to get a copy of this message
 ID:               45991
 Updated by:       tularis@php.net
 Reported By:      ckl at ecw dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         Filesystem function related
 Operating System: Windows XP SP 3
 PHP Version:      5.3.0alpha2
 New Comment:

Would that be UTF-8 with the BOM? or without?


Previous Comments:
------------------------------------------------------------------------

[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)

« previous php.bugs (#128678) next »