|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-23 10:01 UTC] b dot puttmann at dbap dot de
[2006-02-23 10:02 UTC] derick@php.net
[2006-02-23 13:02 UTC] b dot puttmann at dbap dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 26 21:00:01 2025 UTC |
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 )