iliaa           Thu Dec 21 01:16:36 2006 UTC

  Modified files:              
    /php-src/ext/soap   php_sdl.c 
  Log:
  MFB: Optimize out zend_hash_num_elements() call 
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/soap/php_sdl.c?r1=1.105&r2=1.106&diff_format=u
Index: php-src/ext/soap/php_sdl.c
diff -u php-src/ext/soap/php_sdl.c:1.105 php-src/ext/soap/php_sdl.c:1.106
--- php-src/ext/soap/php_sdl.c:1.105    Wed Sep 20 13:43:04 2006
+++ php-src/ext/soap/php_sdl.c  Thu Dec 21 01:16:36 2006
@@ -17,7 +17,7 @@
   |          Dmitry Stogov <[EMAIL PROTECTED]>                             |
   +----------------------------------------------------------------------+
 */
-/* $Id: php_sdl.c,v 1.105 2006/09/20 13:43:04 dmitry Exp $ */
+/* $Id: php_sdl.c,v 1.106 2006/12/21 01:16:36 iliaa Exp $ */
 
 #include "php_soap.h"
 #include "ext/libxml/php_libxml.h"
@@ -1862,8 +1862,8 @@
        if (i > 0) {
                sdlTypePtr *tmp;
 
-         tmp_elements = emalloc(sizeof(HashTable));
-         zend_hash_init(tmp_elements, 0, NULL, NULL, 0);
+               tmp_elements = emalloc(sizeof(HashTable));
+               zend_hash_init(tmp_elements, i, NULL, NULL, 0);
 
                zend_hash_internal_pointer_reset(type->elements);
                while (zend_hash_get_current_data(type->elements, (void**)&tmp) 
== SUCCESS) {

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

Reply via email to