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:
+2
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user