[php-src] PR #23427: Fix php_embed_ub_write() infinite loop on failed write

From: Date: Sun, 23 Aug 2026 20:25:50 +0000
Subject: [php-src] PR #23427: Fix php_embed_ub_write() infinite loop on failed write
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-38093@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/23427 Author: lazerg php_embed_ub_write() never decrements remaining when php_embed_single_write() returns 0, so if php_handle_aborted_connection() doesn't actually abort (e.g. ignore_user_abort=1), the write loop spins forever. sapi_cgi_ub_write() already returns str_length - remaining in this same situation, so this makes php_embed_ub_write() do the same. Fixes #23423

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