Skip to content

Commit e7e46c1

Browse files
committed
Merge branch 'PHP-8.6'
* PHP-8.6: Zend: Restart the va_list per callback in zend_llist_apply_with_arguments()
2 parents 7662bef + f8bc678 commit e7e46c1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Zend/zend_llist.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,11 @@ ZEND_API void zend_llist_apply_with_arguments(zend_llist *l, llist_apply_with_ar
241241
zend_llist_element *element;
242242
va_list args;
243243

244-
va_start(args, num_args);
245244
for (element=l->head; element; element=element->next) {
245+
va_start(args, num_args);
246246
func(element->data, num_args, args);
247+
va_end(args);
247248
}
248-
va_end(args);
249249
}
250250

251251

0 commit comments

Comments
 (0)