You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Attaching class with no Iterator implementation to MultipleIterator causes crash #19094
/home/phpfuzz/WorkSpace/flowfusion/php-src/ext/spl/spl_observer.c:1290:77: runtime error: member access within null pointer of type 'zend_class_iterator_funcs' (aka 'struct _zend_class_iterator_funcs')
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/phpfuzz/WorkSpace/flowfusion/php-src/ext/spl/spl_observer.c:1290:77 in
This happens because MultipleIterator tries to call the methods from the Iterator interface unconditionally, but stdClass doesn't implement those. This should probably fail on assignment.
changed the title [-]SEGV _zend_class_iterator_funcs[/-][+]Attaching class with no Iterator implementation to MultipleIterator causes crash[/+]on Jul 11, 2025
Activity
ndossche commentedon Jul 11, 2025
Reduced:
This happens because MultipleIterator tries to call the methods from the Iterator interface unconditionally, but stdClass doesn't implement those. This should probably fail on assignment.
[-]SEGV _zend_class_iterator_funcs[/-][+]Attaching class with no Iterator implementation to MultipleIterator causes crash[/+]Fix phpGH-19094: Attaching class with no Iterator implementation to M…
Fix GH-19094: Attaching class with no Iterator implementation to Mult…
Merge branch 'PHP-8.3' into PHP-8.4
Merge branch 'PHP-8.4'