ID:               36495
 Updated by:       [EMAIL PROTECTED]
 Reported By:      b dot puttmann at dbap dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         Arrays related
 Operating System: Linux
 PHP Version:      4.3.10
 New Comment:

This is simply not supported. It will be supported in PHP 6.


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

[2006-02-23 10:01:31] b dot puttmann at dbap dot de

Corrected PHP Version

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

[2006-02-23 09:58:28] b dot puttmann at dbap dot de

Description:
------------
array_change_key_case does not change array keys when utf8 encoded.

PHP Version 4.3.10

'./configure' '--prefix=/usr/local/php'
'--with-config-file-path=/usr/local/apache/conf'
'--with-apxs=/usr/local/apache/bin/apxs' '--with-sybase-ct=/opt/sybase'
'--with-ldap=/usr' '--with-gdbm=/usr' '--with-dba' '--enable-shmop'
'--enable-sysvsem' '--with-gd' '--with-zlib-dir=/usr'
'--with-jpeg-dir=/usr' '--with-png-dir=/usr'
'--with-imap=./imap-patched' '--enable-sockets'
'--with-freetype-dir=/usr' '--with-dom'

Reproduce code:
---------------
Testcase:

$test_array = array(    "Über" => 1,
                        "über" => 2);
print "<pre>";print_r($test_array);print "</pre>";
$test_array = array_change_key_case($test_array,CASE_LOWER);
print "<pre>";print_r($test_array);print "</pre>";

Expected result:
----------------
Array
(
    [Über] => 1
    [über] => 2
)

Array
(
    [über] => 2
)

Actual result:
--------------
Array
(
    [Über] => 1
    [über] => 2
)

Array
(
    [Über] => 1
    [über] => 2
)



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


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

Reply via email to