cvs: php-src(PHP_5_2) /ext/soap php_sdl.c
| From: | Ilia Alshanetsky | Date: | Thu, 21 Dec 2006 01:16:11 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/soap php_sdl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-42261@lists.php.net to get a copy of this message | ||
iliaa Thu Dec 21 01:16:11 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/soap php_sdl.c
Log:
Optimize out zend_hash_num_elements() call
http://cvs.php.net/viewvc.cgi/php-src/ext/soap/php_sdl.c?r1=1.88.2.12.2.4&r2=1.88.2.12.2.5&diff_format=u
Index: php-src/ext/soap/php_sdl.c
diff -u php-src/ext/soap/php_sdl.c:1.88.2.12.2.4 php-src/ext/soap/php_sdl.c:1.88.2.12.2.5
--- php-src/ext/soap/php_sdl.c:1.88.2.12.2.4 Thu Nov 30 23:51:24 2006
+++ php-src/ext/soap/php_sdl.c Thu Dec 21 01:16:10 2006
@@ -17,7 +17,7 @@
| Dmitry Stogov <dmitry@zend.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: php_sdl.c,v 1.88.2.12.2.4 2006/11/30 23:51:24 iliaa Exp $ */
+/* $Id: php_sdl.c,v 1.88.2.12.2.5 2006/12/21 01:16:10 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, zend_hash_num_elements(type->elements), 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) {