1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 07:28:09 +02:00

Buffer has to be reallocated on each loop iteration

This commit is contained in:
Dmitry Stogov
2014-05-15 22:51:46 +04:00
parent 47335ef956
commit 2709d4f18b
+2 -1
View File
@@ -2981,7 +2981,8 @@ PHP_METHOD(SoapClient, __getTypes)
if (sdl->types) {
ZEND_HASH_FOREACH_PTR(sdl->types, type) {
type_to_string(type, &buf, 0);
add_next_index_str(return_value, buf.s);
add_next_index_stringl(return_value, buf.s->val, buf.s->len);
smart_str_free(&buf);
} ZEND_HASH_FOREACH_END();
}
}