php-src/ext/standard/tests/streams
Jakub Zelenka 5ef0dc7666
Fix GHSA-3cr5-j632-f35r: Null byte in hostnames
This fixes stream_socket_client() and fsockopen().

Specifically it adds a check to parse_ip_address_ex and it also makes
sure that the \0 is not ignored in fsockopen() hostname formatting.
2025-07-01 23:01:16 +09:00
..
bug40459.phpt Deprecate implicit dynamic properties 2021-11-26 14:10:11 +01:00
bug44712.phpt Promote warnings to exceptions in stream-related functions 2019-12-20 12:01:02 +01:00
bug44818.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug46024.phpt Add ASAN XLEAK support 2023-04-03 08:02:19 +02:00
bug46147.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
bug46426.phpt Adjust tests for zpp TypeError change 2019-03-11 11:32:20 +01:00
bug47997.phpt
bug48309.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug49936_win32.phpt Strip trailing line breaks and periods from Windows error messages 2020-11-12 16:42:28 +01:00
bug51056.phpt Port stream bug51056 and gh11418 tests to use ephemeral ports 2024-12-31 15:18:50 +01:00
bug53427.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
bug53903.phpt Deprecate implicit dynamic properties 2021-11-26 14:10:11 +01:00
bug54623.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
bug54946.phpt Make error messages more consistent by fixing capitalization 2020-01-17 14:52:46 +01:00
bug60106-001.phpt Fixed off-by-one error in checking length of abtract namespace Unix sockets 2024-06-13 12:46:22 +01:00
bug60106-002.phpt Fixed off-by-one error in checking length of abtract namespace Unix sockets 2024-06-13 12:46:22 +01:00
bug60455_01.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
bug60455_02.phpt Deprecate implicit dynamic properties 2021-11-26 14:10:11 +01:00
bug60455_03.phpt Deprecate implicit dynamic properties 2021-11-26 14:10:11 +01:00
bug60455_04.phpt Deprecate implicit dynamic properties 2021-11-26 14:10:11 +01:00
bug60602.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug60817.phpt Deprecate implicit dynamic properties 2021-11-26 14:10:11 +01:00
bug61019.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug61115-1.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
bug61115-2.phpt
bug61115.phpt Review parameter names in ext/pcre 2020-10-02 11:55:23 +02:00
bug62922.phpt
bug63240.phpt
bug64166.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug64166_2.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug64166_3.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug64433.phpt Use ephemeral port in more server tests 2020-10-23 14:26:34 +02:00
bug64433_srv.inc Reindent phpt files 2020-02-03 22:52:20 +01:00
bug64770.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug65483.phpt
bug67626.phpt Deprecate implicit dynamic properties 2021-11-26 14:10:11 +01:00
bug68948.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
bug69521.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug70198.phpt Fix GH-10489: run-tests.php does not escape path when building cmd (#10560) 2023-02-25 14:02:06 +00:00
bug70362.phpt Don't leave behind temporary file in bug70362.phpt 2020-09-07 16:15:44 +02:00
bug71245.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug71323.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug71884.phpt Promote warnings to exceptions in stream-related functions 2019-12-20 12:01:02 +01:00
bug72075.phpt Update deprecation message for incompatible float to int conversion 2021-06-07 14:36:11 +02:00
bug72221.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
bug72534.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
bug72771.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
bug72853.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug72857.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug73457.phpt Reduce timeout in FTP PASV connection failure test 2021-05-19 15:08:40 +02:00
bug74090.phpt Fix GH-12104 attempt 2024-05-24 23:34:46 +01:00
bug74556.phpt Close PHP tags in tests 2023-10-18 17:34:10 +02:00
bug74951.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
bug75031.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:46:15 +02:00
bug75776.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
bug76136.phpt Enable further tests on Windows 2020-07-16 16:07:23 +02:00
bug76857.phpt Fix bug #76857: Can read "non-existant" files 2023-08-28 16:53:28 +01:00
bug76859.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
bug76943.phpt Fix #76943: Inconsistent stream_wrapper_restore() errors 2020-09-22 16:11:35 +02:00
bug77069.phpt Declare tentative return types for ext/standard (#7065) 2021-05-28 15:46:04 +02:00
bug77080.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
bug77664.phpt Fix lineno for all constant expressions 2023-02-02 19:03:47 +01:00
bug77680.phpt Replace EXPECTF when possible 2020-06-29 21:31:44 +02:00
bug77765.phpt Replace EXPECTF when possible 2020-06-29 21:31:44 +02:00
bug78326.phpt Fix bug #78326 2019-07-29 17:33:57 +02:00
bug78326_1.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
bug78506.phpt Declare tentative return types for ext/standard (#7065) 2021-05-28 15:46:04 +02:00
bug78662.phpt Deprecate implicit dynamic properties 2021-11-26 14:10:11 +01:00
bug78883.phpt Fix GH-10489: run-tests.php does not escape path when building cmd (#10560) 2023-02-25 14:02:06 +00:00
bug78902.phpt Don't automatically adjust memory_limit to 2M 2021-05-31 15:42:10 +02:00
bug79000.phpt Fixed bug #79000 2019-12-20 11:37:43 +01:00
bug79467.phpt Fix #79467: data:// wrappers are writable 2020-05-03 12:19:37 +02:00
bug79984.phpt Declare tentative return types for ext/standard (#7065) 2021-05-28 15:46:04 +02:00
bug81346.phpt Fix SKIPIF clause 2021-08-11 11:11:34 +02:00
bug81659.phpt Fix #81659: stream_get_contents() may unnecessarily overallocate 2021-11-29 14:46:09 +01:00
eagain_is_not_an_error.phpt Report errors from stream read and write operations 2019-07-22 17:17:28 +02:00
gh8409.phpt ext/core: Deprecate passing E_USER_ERROR to trigger_error() (#15308) 2024-08-09 15:51:07 +01:00
gh8472.phpt Fix GH-8472: stream_socket_accept result may have incorrect metadata 2022-08-07 14:17:38 +01:00
gh9590-001.phpt Use --EXTENSIONS-- section for newly added tests 2022-10-01 14:08:59 +02:00
gh9590-002.phpt Use --EXTENSIONS-- section for newly added tests 2022-10-01 14:08:59 +02:00
gh10031.phpt Fix GH-10031: [Stream] STREAM_NOTIFY_PROGRESS over HTTP emitted irregularly for last chunk of data 2023-05-05 19:26:44 +02:00
gh10406.phpt Fix GH-10406: feof() behavior change for UNIX based socket resources 2023-03-30 13:31:46 +01:00
gh11418.phpt Port stream bug51056 and gh11418 tests to use ephemeral ports 2024-12-31 15:18:50 +01:00
gh14780.phpt Fix GH-14780: p(f)sockopen overflow on timeout argument. 2024-07-22 22:57:59 +01:00
gh14930.phpt Mark gd14930.phpt as dynamic xfail 2024-09-01 15:04:54 +02:00
gh15155.phpt Fix GH-15155: Keep stream context in filtered streams 2024-08-06 16:42:33 +01:00
gh15908.phpt Fix GH-15908 and GH-15026: leak / assertion failure in streams.c 2024-09-22 16:07:12 +02:00
gh15980.phpt Fix GH-15980: Signed integer overflow in main/streams/streams.c 2024-09-24 12:32:00 +02:00
gh17067.phpt Fix GH-17067: glob:// wrapper doesn't cater to CWD for ZTS builds 2024-12-18 13:02:48 +01:00
gh17650.phpt Fix GH-17650: realloc with size 0 in user_filters.c 2025-02-07 20:22:52 +01:00
ghsa-3cr5-j632-f35r.phpt Fix GHSA-3cr5-j632-f35r: Null byte in hostnames 2025-07-01 23:01:16 +09:00
glob-wrapper.phpt Fix #65069: GlobIterator incorrect handling of open_basedir check 2022-07-28 11:42:42 +01:00
non_finite_values.phpt Fix passing non-finite timeout values in stream functions 2024-07-22 17:52:21 +02:00
nonblocking_stdin.phpt Report errors from stream read and write operations 2019-07-22 17:17:28 +02:00
opendir-001.phpt Make error messages more consistent by fixing capitalization 2020-01-17 14:52:46 +01:00
opendir-002.phpt Clean DONE tags from tests 2019-11-07 21:31:47 +01:00
opendir-003.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
opendir-004.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
proc_open_bug51800_right.phpt Fix GH-10489: run-tests.php does not escape path when building cmd (#10560) 2023-02-25 14:02:06 +00:00
proc_open_bug51800_right2.phpt Fix GH-10489: run-tests.php does not escape path when building cmd (#10560) 2023-02-25 14:02:06 +00:00
proc_open_bug60120.phpt Fix GH-10489: run-tests.php does not escape path when building cmd (#10560) 2023-02-25 14:02:06 +00:00
proc_open_bug64438.phpt Fix GH-10489: run-tests.php does not escape path when building cmd (#10560) 2023-02-25 14:02:06 +00:00
proc_open_bug69900.phpt Merge branch 'PHP-8.2' 2023-03-27 16:34:19 +02:00
set_file_buffer.phpt Fix GH-13071: Copying large files using mmap-able source streams may exhaust available memory and fail 2024-01-16 23:44:58 +01:00
stream_cast_loses_data.phpt Add tests for uncastable streams and dataloss streams (#10173) 2023-07-10 13:24:23 +01:00
stream_context_create_error.phpt Make the return type of some stream context related functions true (#12720) 2023-11-19 20:36:42 +01:00
stream_context_get_params_001.phpt
stream_context_set_option_basic.phpt Deprecate calling stream_context_set_option() with 2 arguments 2023-12-04 22:35:30 +01:00
stream_context_set_option_error.phpt Deprecate calling stream_context_set_option() with 2 arguments 2023-12-04 22:35:30 +01:00
stream_context_set_options_basic.phpt Implement stream_context_set_options() 2023-07-18 12:59:21 +02:00
stream_context_set_options_error.phpt Implement stream_context_set_options() 2023-07-18 12:59:21 +02:00
stream_context_tcp_nodelay.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
stream_context_tcp_nodelay_fopen.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
stream_context_tcp_nodelay_server.phpt Test stream_context_tcp_nodelay_server on Windows 2025-01-05 14:44:22 +01:00
stream_copy_to_stream_socket.phpt
stream_filter_register.phpt Declare tentative return types for ext/standard (#7065) 2021-05-28 15:46:04 +02:00
stream_get_contents_001.phpt Adjust tests for zpp TypeError change 2019-03-11 11:32:20 +01:00
stream_get_contents_002.phpt
stream_get_contents_negative_length.phpt Update ext/sockets parameter names 2020-10-06 12:12:43 +02:00
stream_get_line_nb.phpt
stream_get_line_NUL_delimiter.phpt Deprecate implicit dynamic properties 2021-11-26 14:10:11 +01:00
stream_get_meta_data_dir_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
stream_get_meta_data_file_basic.phpt
stream_get_meta_data_file_error.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
stream_get_meta_data_file_variation1.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
stream_get_meta_data_file_variation2.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
stream_get_meta_data_file_variation4.phpt
stream_get_meta_data_file_variation5.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
stream_get_meta_data_process_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
stream_get_meta_data_socket_basic.phpt Keep the orig_path for xport stream 2023-05-12 15:33:55 +01:00
stream_get_meta_data_socket_variation1.phpt Keep the orig_path for xport stream 2023-05-12 15:33:55 +01:00
stream_get_meta_data_socket_variation2.phpt Keep the orig_path for xport stream 2023-05-12 15:33:55 +01:00
stream_get_meta_data_socket_variation3.phpt Keep the orig_path for xport stream 2023-05-12 15:33:55 +01:00
stream_get_meta_data_socket_variation4.phpt Keep the orig_path for xport stream 2023-05-12 15:33:55 +01:00
stream_get_transports.phpt Remove superfluous PHP version check in tests 2018-02-04 16:58:54 +01:00
stream_get_wrappers.phpt Remove superfluous PHP version check in tests 2018-02-04 16:58:54 +01:00
stream_is_local.phpt
stream_multi_filters_close.phpt Declare tentative return types for ext/standard (#7065) 2021-05-28 15:46:04 +02:00
stream_read_object_return.phpt Deprecate implicit dynamic properties 2021-11-26 14:10:11 +01:00
stream_resolve_include_path.phpt Adjust tests for zpp TypeError change 2019-03-11 11:32:20 +01:00
stream_select_null_usec.phpt Accept null and 0 for microseconds argument in stream_select() 2021-11-01 09:09:26 +01:00
stream_select_preserve_keys.phpt Preserve keys in emulate_read_fd_set() 2019-04-08 12:58:46 +02:00
stream_set_chunk_size.phpt Fix GH-13071: Copying large files using mmap-able source streams may exhaust available memory and fail 2024-01-16 23:44:58 +01:00
stream_set_timeout_error.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
stream_socket_get_name.phpt Avoid port conflicts in stream socket tests 2019-02-19 15:55:13 +01:00
stream_socket_pair.phpt
stream_socket_recvfrom.phpt Avoid port conflicts in stream socket tests 2019-02-19 15:55:13 +01:00
temp_stream_seek.phpt Preserve file-position when php://temp switches to temporary file 2022-04-11 12:31:22 +02:00
user-stream-error.phpt Deprecate implicit dynamic properties 2021-11-26 14:10:11 +01:00
user_streams_consumed_bug.phpt Declare tentative return types for ext/standard (#7065) 2021-05-28 15:46:04 +02:00
user_streams_context_001.phpt Fix use after free 2022-06-14 12:44:37 +03:00