From: ckl at ecw dot de Operating system: Windows XP SP 3 PHP version: 5.3.0alpha2 PHP Bug Type: Filesystem function related Bug description: parse_ini_file returns empty array if config.ini is saved as UTF-8
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 bug report at http://bugs.php.net/?id=45991&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45991&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45991&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45991&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45991&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45991&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45991&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45991&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45991&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45991&r=support Expected behavior: http://bugs.php.net/fix.php?id=45991&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45991&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45991&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45991&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45991&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45991&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45991&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45991&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45991&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45991&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45991&r=mysqlcfg