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

Buffer has to be reallocated on each loop iteration

This commit is contained in:
Dmitry Stogov
2014-05-15 22:58:58 +04:00
parent ce8518e652
commit f0da988282

View File

@@ -2954,7 +2954,8 @@ PHP_METHOD(SoapClient, __getFunctions)
array_init(return_value);
ZEND_HASH_FOREACH_PTR(&sdl->functions, function) {
function_to_string(function, &buf);
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();
}
}