php-src/tests/output
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
..
bug46897.phpt Make error messages more consistent by fixing capitalization 2020-01-17 14:52:46 +01:00
bug60282.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
bug60321.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
bug60322.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
bug60768.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
bug65593.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
bug70970.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug74725.phpt Fix bug #74725 (html_errors=1 breaks unhandled exceptions) 2017-08-12 01:37:20 +01:00
bug75236.phpt Make error messages more consistent by fixing capitalization 2020-01-17 14:52:46 +01:00
DummyStreamWrapper.inc Add tests for uncastable streams and dataloss streams (#10173) 2023-07-10 13:24:23 +01:00
flush_basic_001.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
gh14808.phpt Declare that this test needs iconv extension 2024-07-08 18:37:52 -03:00
gh15179.phpt Fix GH-15179: Segmentation fault (null pointer dereference) in ext/standard/url_scanner_ex.re 2024-08-03 02:05:06 +02:00
gh15181.phpt Fix GH-15181: Disabled output handler is flushed again 2024-08-06 16:45:51 +02:00
ob_001.phpt Backport ob test to php 5.2 and 53. 2009-06-14 16:47:11 +00:00
ob_002.phpt Backport ob test to php 5.2 and 53. 2009-06-14 16:47:11 +00:00
ob_003.phpt Backport ob test to php 5.2 and 53. 2009-06-14 16:47:11 +00:00
ob_004.phpt Backport ob test to php 5.2 and 53. 2009-06-14 16:47:11 +00:00
ob_005.phpt Backport ob test to php 5.2 and 53. 2009-06-14 16:47:11 +00:00
ob_006.phpt Backport ob test to php 5.2 and 53. 2009-06-14 16:47:11 +00:00
ob_007.phpt Backport ob test to php 5.2 and 53. 2009-06-14 16:47:11 +00:00
ob_008.phpt Backport ob test to php 5.2 and 53. 2009-06-14 16:47:11 +00:00
ob_009.phpt Backport ob test to php 5.2 and 53. 2009-06-14 16:47:11 +00:00
ob_010.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
ob_011.phpt Mark test as XFAIL for Windows/JIT/Release builds 2020-07-10 09:32:28 +02:00
ob_012.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
ob_013.phpt Improve ob_get_status() tests (#13018) 2023-12-29 15:24:06 +00:00
ob_014.phpt Improve error messages mentioning parameters instead of arguments 2020-09-09 10:47:43 +02:00
ob_015.phpt Improve error messages mentioning parameters instead of arguments 2020-09-09 10:47:43 +02:00
ob_017.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
ob_018.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
ob_020.phpt Backport ob test to php 5.2 and 53. 2009-06-18 21:03:00 +00:00
ob_clean_basic_001.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
ob_end_clean_basic_001.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
ob_end_flush_basic_001.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
ob_flush_basic_001.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
ob_get_clean_basic_001.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
ob_get_clean_basic_002.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
ob_get_contents_basic_001.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
ob_get_length_basic_001.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
ob_get_level_basic_001.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
ob_get_status.phpt Improve ob_get_status() tests (#13018) 2023-12-29 15:24:06 +00:00
ob_implicit_flush_basic_001.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
ob_implicit_flush_basic_002.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
ob_start_basic_001.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
ob_start_basic_002.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
ob_start_basic_003.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
ob_start_basic_004.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
ob_start_basic_005.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
ob_start_basic_006.phpt Slightly clean up is_callable implementation 2021-09-02 10:37:13 +02:00
ob_start_basic_unerasable_001.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
ob_start_basic_unerasable_002.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
ob_start_basic_unerasable_003.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
ob_start_basic_unerasable_004.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
ob_start_basic_unerasable_005.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
ob_start_callbacks.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
ob_start_error_001.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
ob_start_error_002.phpt Review the usage of apostrophes in error messages 2020-07-10 21:05:28 +02:00
ob_start_error_003.phpt Slightly clean up is_callable implementation 2021-09-02 10:37:13 +02:00
ob_start_error_004.phpt Review the usage of apostrophes in error messages 2020-07-10 21:05:28 +02:00
ob_start_error_005.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
ob_start_flags.phpt Clear handler status flag in handler init 2024-02-09 12:00:56 +00:00
sapi_windows_vt100_support_no_warning_on_cast.phpt Add tests for uncastable streams and dataloss streams (#10173) 2023-07-10 13:24:23 +01:00
sapi_windows_vt100_support_non_castable_user_stream.phpt Add tests for uncastable streams and dataloss streams (#10173) 2023-07-10 13:24:23 +01:00
sapi_windows_vt100_support_notwindows.phpt Change PHP_OS_FAMILY slightly 2017-02-22 12:31:06 +01:00
sapi_windows_vt100_support_winko_err.phpt Run tidy 2020-09-18 14:28:32 +02:00
sapi_windows_vt100_support_winko_in-err.phpt Run tidy 2020-09-18 14:28:32 +02:00
sapi_windows_vt100_support_winko_in-out-err.phpt Run tidy 2020-09-18 14:28:32 +02:00
sapi_windows_vt100_support_winko_in-out.phpt Run tidy 2020-09-18 14:28:32 +02:00
sapi_windows_vt100_support_winko_out-err.phpt Run tidy 2020-09-18 14:28:32 +02:00
sapi_windows_vt100_support_winko_out.phpt Run tidy 2020-09-18 14:28:32 +02:00
sapi_windows_vt100_support_winok_err.phpt Run tidy 2020-09-18 14:28:32 +02:00
sapi_windows_vt100_support_winok_in-err.phpt Run tidy 2020-09-18 14:28:32 +02:00
sapi_windows_vt100_support_winok_in-out-err.phpt Run tidy 2020-09-18 14:28:32 +02:00
sapi_windows_vt100_support_winok_in-out.phpt Run tidy 2020-09-18 14:28:32 +02:00
sapi_windows_vt100_support_winok_out-err.phpt Run tidy 2020-09-18 14:28:32 +02:00
sapi_windows_vt100_support_winok_out.phpt Run tidy 2020-09-18 14:28:32 +02:00
sapi_windows_vt100_support.inc Fix #79805: sapi_windows_vt100_support throws TypeError 2020-07-16 18:36:02 +02:00
stream_isatty_err.phpt Run tidy 2020-09-18 14:28:32 +02:00
stream_isatty_in-err.phpt Run tidy 2020-09-18 14:28:32 +02:00
stream_isatty_in-out-err.phpt Run tidy 2020-09-18 14:28:32 +02:00
stream_isatty_in-out.phpt Run tidy 2020-09-18 14:28:32 +02:00
stream_isatty_no_warning_on_cast.phpt Add tests for uncastable streams and dataloss streams (#10173) 2023-07-10 13:24:23 +01:00
stream_isatty_non_castable_user_stream.phpt Add tests for uncastable streams and dataloss streams (#10173) 2023-07-10 13:24:23 +01:00
stream_isatty_non_castable_userwrapper.phpt streams: Checking if a stream is castable should not emit warnings for user defined streams 2023-09-08 13:22:43 +01:00
stream_isatty_out-err.phpt Run tidy 2020-09-18 14:28:32 +02:00
stream_isatty_out.phpt Run tidy 2020-09-18 14:28:32 +02:00
stream_isatty.inc Adjust tests for zpp TypeError change 2019-03-11 11:32:20 +01:00