[php-src] PR #24202: ext/standard: Discard a stream filter when onCreate() throws

From: Date: Thu, 08 Oct 2026 19:52:14 +0000
Subject: [php-src] PR #24202: ext/standard: Discard a stream filter when onCreate() throws
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-39268@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/24202 Author: iliaal A user filter whose onCreate() throws stays attached to the stream, because user_filter_factory_create() only treats an explicit false as a creation failure. Its filter() then runs on later writes, so fwrite() returns false with an "Unprocessed filter buckets" warning. With a wildcard name, php_stream_filter_create() also goes on to try other factories such as convert.iconv.* while the exception is pending. This discards the filter on an exception, stops the wildcard fallback, and drops the filter creation warnings that would otherwise accompany the exception, which also removes two warnings from the object_init_failure tests.

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