[php-src] PR #25230: Fix GH-25228: Segfault in IteratorIterator with abstract IteratorAggregate

From: Date: Fri, 06 Nov 2026 01:30:39 +0000
Subject: [php-src] PR #25230: Fix GH-25228: Segfault in IteratorIterator with abstract IteratorAggregate
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40343@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25230 Author: lazerg When $class names an abstract class, spl_get_iterator_from_aggregate() calls that class's getIterator() directly, which is still the abstract one. That skips the usual abstract check, so the internal IteratorAggregate::getIterator() crashes with a NULL handler and a userland abstract one runs with no body. It now throws the same "Cannot call abstract method" Error a normal call would. Fixes #25228

« previous php.git-pulls (#40343) next »