[GIT-PULLS] [php-src] PR #23427: Fix php_embed_ub_write() infinite loop on failed write
[email protected] (lazerg)
| Newsgroups | php.git-pulls |
|---|---|
| Message-ID | <[email protected]> |
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