ID:               49056
 Updated by:       j...@php.net
 Reported By:      weierophin...@php.net
-Status:           Open
+Status:           Closed
 Bug Type:         PHP options/info functions
 Operating System: Ubuntu 9.04
 PHP Version:      5.3.0
 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




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

[2009-08-04 02:34:05] s...@php.net

Automatic comment from SVN on behalf of jani
Revision: http://svn.php.net/viewvc/?view=revision&revision=286778
Log: - Fixed bug #49056 (parse_ini_file() regression in 5.3.0 when
using non-ASCII strings as option keys)

------------------------------------------------------------------------

[2009-07-25 13:41:26] weierophin...@php.net

Description:
------------
In PHP versions < 5.3.0, one could specify INI option keys using
non-ASCII characters; parse_ini_file would find these without issue.

Starting with 5.3.0, such options are silently dropped from the
returned array of key/value pairs. The same is true of
parse_ini_string().

I have the following extensions enabled:
bz2 Core ctype curl date dom ereg fileinfo filter gd gettext hash iconv
intl json libxml mhash mysql openssl pcntl pcre PDO pdo_mysql pdo_sqlite
Phar posix Reflection session SimpleXML soap sockets SPL SQLite sqlite3
standard tidy tokenizer xml xmlreader xmlwriter zip zlib

My php.ini is php.ini-development, with the only changes being to set
my include_path and date.timezone.

Reproduce code:
---------------
$string =<<<EOT
Cooking_furniture="Küchen Möbel (en)"
Küchen_Möbel="Cooking furniture (en)"
EOT;

$data = parse_ini_string($string);
var_export($data);

Expected result:
----------------
array (
  'Cooking_furniture' => 'Küchen Möbel (en)',
  'Küchen_Möbel' => 'Cooking furniture (en)',
)

Actual result:
--------------
array (
  'Cooking_furniture' => 'Küchen Möbel (en)',
)


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49056&edit=1

Reply via email to