pollita         Fri Jun 20 11:41:43 2003 EDT

  Modified files:              
    /php4/ext/standard  string.c 
  Log:
  When skipping blank searchvals we should advance the corresponding replace hash as 
well
  
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.390 php4/ext/standard/string.c:1.391
--- php4/ext/standard/string.c:1.390    Tue Jun 10 22:16:19 2003
+++ php4/ext/standard/string.c  Fri Jun 20 11:41:43 2003
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: string.c,v 1.390 2003/06/11 02:16:19 iliaa Exp $ */
+/* $Id: string.c,v 1.391 2003/06/20 15:41:43 pollita Exp $ */
 
 /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
 
@@ -3063,6 +3063,9 @@
                        convert_to_string(*search_entry);
                        if (Z_STRLEN_PP(search_entry) == 0) {
                                zend_hash_move_forward(Z_ARRVAL_P(search));
+                               if (Z_TYPE_P(replace) == IS_ARRAY) {
+                                       zend_hash_move_forward(Z_ARRVAL_P(replace));
+                               }
                                continue;
                        }
 



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

Reply via email to