php-src/tests
Christoph M. Becker 887e6b9c45
Fix GH-15181: Disabled output handler is flushed again
When an `PHP_OUTPUT_HANDLER_FAILURE` occurs, the output handler becomes
disabled (i.e. the `PHP_OUTPUT_HANDLER_DISABLED` flag is set).  However,
there is no guard for disabled handlers in `php_output_handler_op()`
what may cause serious issues (as reported, UB due to passing `NULL` as
the 2nd argument of `memcpy`, because the handler's buffer has already
been `NULL`ed).  Therefore, we add a respective guard for disabled
handlers, and return `PHP_OUTPUT_HANDLER_FAILURE` right away.

Closes GH-15183.
2024-08-06 16:45:51 +02:00
..
basic Trim trailing whitespace (#14721) 2024-06-29 18:41:45 +02:00
classes [RFC] Property hooks (#13455) 2024-07-14 11:55:03 +02:00
func Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
lang [skip ci] Fix some typos (#14893) 2024-07-10 00:11:36 +01:00
output Fix GH-15181: Disabled output handler is flushed again 2024-08-06 16:45:51 +02:00
run-test Close PHP tags in tests 2023-10-18 17:34:10 +02:00
security Close PHP tags in tests 2023-10-18 17:34:10 +02:00
strings Align highlight_string|file with HTML standard and modern browsers 2023-08-12 15:08:28 +01:00