johannes                Sun May 28 21:09:58 2006 UTC

  Modified files:              
    /php-src/ext/standard       string.c 
  Log:
  - Fix str_replace with unicode strings as key
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/string.c?r1=1.542&r2=1.543&diff_format=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.542 php-src/ext/standard/string.c:1.543
--- php-src/ext/standard/string.c:1.542 Wed May 10 13:07:56 2006
+++ php-src/ext/standard/string.c       Sun May 28 21:09:58 2006
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: string.c,v 1.542 2006/05/10 13:07:56 iliaa Exp $ */
+/* $Id: string.c,v 1.543 2006/05/28 21:09:58 johannes Exp $ */
 
 /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
 
@@ -4925,6 +4925,7 @@
                        switch 
(zend_hash_get_current_key_ex(Z_ARRVAL_PP(subject), &string_key,
                                                                                
                &string_key_len, &num_key, 0, NULL)) {
                                case HASH_KEY_IS_STRING:
+                               case HASH_KEY_IS_UNICODE:
                                        add_assoc_zval_ex(return_value, 
string_key.s, string_key_len, result);
                                        break;
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to