[php-src] master: stream: remove path parameter in stream error functions (#22792)

Gina Peter Banyard via GitHub <[email protected]> Sun, 19 Jul 2026 15:15:03 +0000
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: Gina Peter Banyard (Girgias)
Committer: GitHub (web-flow)
Pusher: Girgias
Date: 2026-07-19T16:15:01+01:00

Commit: https://github.com/php/php-src/commit/34c686a5b4ef10fd2451deb52422b410d4c7d619
Raw diff: https://github.com/php/php-src/commit/34c686a5b4ef10fd2451deb52422b410d4c7d619.diff

stream: remove path parameter in stream error functions (#22792)

Instead rely on the mechanism gated by the error_include_args INI to display them.

This actually aligns the behaviour of what was accepted in https://wiki.php.net/rfc/display_error_function_args.

Changed paths:
  M  Zend/tests/backtrace/debug_backtrace_with_include_and_this.phpt
  M  Zend/tests/bug30998.phpt
  M  Zend/tests/bug60909_1.phpt
  M  Zend/tests/gh11735_2.phpt
  M  Zend/tests/include_stat_is_quiet.phpt
  M  Zend/tests/oss_fuzz_64209.phpt
  M  Zend/tests/require_once_warning_to_exception.phpt
  M  ext/bz2/tests/001.phpt
  M  ext/bz2/tests/002.phpt
  M  ext/dba/tests/dba_cdb_creation_matrix.phpt
  M  ext/dba/tests/dba_flatfile_creation_matrix.phpt
  M  ext/dba/tests/dba_inifile_creation_matrix.phpt
  M  ext/dba/tests/dba_tcadb_creation_matrix.phpt
  M  ext/dba/tests/gh18247.phpt
  M  ext/dom/tests/modern/html/parser/HTMLDocument_fromFile_local_file_does_not_exist.phpt
  M  ext/exif/tests/exif_imagetype_error.phpt
  M  ext/fileinfo/tests/bug68996.phpt
  M  ext/fileinfo/tests/finfo_file_001.phpt
  M  ext/fileinfo/tests/finfo_open_001.phpt
  M  ext/fileinfo/tests/finfo_open_error.phpt
  M  ext/fileinfo/tests/mime_content_type_001.phpt
  M  ext/gd/tests/001-mb.phpt
  M  ext/gd/tests/001.phpt
  M  ext/gd/tests/imageloadfont_error2.phpt
  M  ext/hash/tests/hash_file_error.phpt
  M  ext/libxml/tests/bug61367-write.phpt
  M  ext/mysqli/tests/mysqli_pam_sha256_public_key_option_invalid.phpt
  M  ext/openssl/tests/bug65538_002.phpt
  M  ext/phar/tests/013.phpt
  M  ext/phar/tests/014.phpt
  M  ext/phar/tests/016.phpt
  M  ext/phar/tests/016b.phpt
  M  ext/phar/tests/017.phpt
  M  ext/phar/tests/027.phpt
  M  ext/phar/tests/bug69720.phpt
  M  ext/phar/tests/bug77432.phpt
  M  ext/phar/tests/bug81726.phpt
  M  ext/phar/tests/cache_list/frontcontroller22.phpt
  M  ext/phar/tests/create_new_phar_b.phpt
  M  ext/phar/tests/create_path_error.phpt
  M  ext/phar/tests/delete.phpt
  M  ext/phar/tests/delete_in_phar.phpt
  M  ext/phar/tests/delete_in_phar_confirm.phpt
  M  ext/phar/tests/fgc_edgecases.phpt
  M  ext/phar/tests/fopen.phpt
  M  ext/phar/tests/fopen_edgecases.phpt
  M  ext/phar/tests/fopen_edgecases2.phpt
  M  ext/phar/tests/frontcontroller22.phpt
  M  ext/phar/tests/include_path.phpt
  M  ext/phar/tests/mounteddir.phpt
  M  ext/phar/tests/open_for_write_existing_b.phpt
  M  ext/phar/tests/open_for_write_existing_c.phpt
  M  ext/phar/tests/open_for_write_newfile_b.phpt
  M  ext/phar/tests/open_for_write_newfile_c.phpt
  M  ext/phar/tests/opendir.phpt
  M  ext/phar/tests/opendir_edgecases.phpt
  M  ext/phar/tests/phar_buildfromdirectory2-win.phpt
  M  ext/phar/tests/phar_buildfromdirectory2.phpt
  M  ext/phar/tests/phar_gobyebye-win32.phpt
  M  ext/phar/tests/phar_gobyebye.phpt
  M  ext/phar/tests/readfile_edgecases.phpt
  M  ext/phar/tests/rename.phpt
  M  ext/phar/tests/rename_dir.phpt
  M  ext/phar/tests/tar/create_new_phar_b.phpt
  M  ext/phar/tests/tar/delete.phpt
  M  ext/phar/tests/tar/delete_in_phar.phpt
  M  ext/phar/tests/tar/delete_in_phar_confirm.phpt
  M  ext/phar/tests/tar/gh16695_1.phpt
  M  ext/phar/tests/tar/open_for_write_existing_b.phpt
  M  ext/phar/tests/tar/open_for_write_existing_c.phpt
  M  ext/phar/tests/tar/open_for_write_newfile_b.phpt
  M  ext/phar/tests/tar/open_for_write_newfile_c.phpt
  M  ext/phar/tests/tar/rename.phpt
  M  ext/phar/tests/tar/rename_dir.phpt
  M  ext/phar/tests/tar/tar_001.phpt
  M  ext/phar/tests/tar/tar_002.phpt
  M  ext/phar/tests/tar/tar_nostub.phpt
  M  ext/phar/tests/test_alias_unset.phpt
  M  ext/phar/tests/zip/create_new_phar_b.phpt
  M  ext/phar/tests/zip/delete.phpt
  M  ext/phar/tests/zip/delete_in_phar.phpt
  M  ext/phar/tests/zip/delete_in_phar_confirm.phpt
  M  ext/phar/tests/zip/notphar.phpt
  M  ext/phar/tests/zip/open_for_write_existing_b.phpt
  M  ext/phar/tests/zip/open_for_write_existing_c.phpt
  M  ext/phar/tests/zip/open_for_write_newfile_b.phpt
  M  ext/phar/tests/zip/open_for_write_newfile_c.phpt
  M  ext/phar/tests/zip/rename.phpt
  M  ext/phar/tests/zip/rename_dir.phpt
  M  ext/standard/tests/dir/bug80960.phpt
  M  ext/standard/tests/dir/dir_variation5.phpt
  M  ext/standard/tests/dir/dir_variation6.phpt
  M  ext/standard/tests/dir/dir_variation7.phpt
  M  ext/standard/tests/dir/dir_variation8.phpt
  M  ext/standard/tests/dir/dir_variation9.phpt
  M  ext/standard/tests/dir/opendir_error2.phpt
  M  ext/standard/tests/dir/opendir_variation5.phpt
  M  ext/standard/tests/dir/opendir_variation6-win32.phpt
  M  ext/standard/tests/dir/opendir_variation6.phpt
  M  ext/standard/tests/dir/scandir_error2.phpt
  M  ext/standard/tests/dir/scandir_variation5.phpt
  M  ext/standard/tests/dir/scandir_variation6.phpt
  M  ext/standard/tests/file/007_variation15.phpt
  M  ext/standard/tests/file/007_variation16.phpt
  M  ext/standard/tests/file/007_variation23.phpt
  M  ext/standard/tests/file/007_variation24.phpt
  M  ext/standard/tests/file/007_variation7.phpt
  M  ext/standard/tests/file/007_variation8.phpt
  M  ext/standard/tests/file/bug35740.phpt
  M  ext/standard/tests/file/bug43353.phpt
  M  ext/standard/tests/file/bug76735.phpt
  M  ext/standard/tests/file/copy_error.phpt
  M  ext/standard/tests/file/copy_variation14.phpt
  M  ext/standard/tests/file/copy_variation15.phpt
  M  ext/standard/tests/file/copy_variation16-win32.phpt
  M  ext/standard/tests/file/copy_variation17.phpt
  M  ext/standard/tests/file/copy_variation2-win32-mb.phpt
  M  ext/standard/tests/file/copy_variation2-win32.phpt
  M  ext/standard/tests/file/copy_variation3-win32.phpt
  M  ext/standard/tests/file/copy_variation6-win32.phpt
  M  ext/standard/tests/file/file_error.phpt
  M  ext/standard/tests/file/file_get_contents_error.phpt
  M  ext/standard/tests/file/file_get_contents_error_folder-win.phpt
  M  ext/standard/tests/file/file_get_contents_file_put_contents_error.phpt
  M  ext/standard/tests/file/file_get_contents_variation7-win32-mb.phpt
  M  ext/standard/tests/file/file_get_contents_variation7-win32.phpt
  M  ext/standard/tests/file/file_get_contents_variation7.phpt
  M  ext/standard/tests/file/file_get_contents_variation8-win32.phpt
  M  ext/standard/tests/file/file_get_contents_variation8.phpt
  M  ext/standard/tests/file/file_get_contents_with_custom_uri_parser.phpt
  M  ext/standard/tests/file/file_put_contents_variation7-win32.phpt
  M  ext/standard/tests/file/file_put_contents_variation7.phpt
  M  ext/standard/tests/file/file_put_contents_variation8-win32.phpt
  M  ext/standard/tests/file/file_put_contents_variation8.phpt
  M  ext/standard/tests/file/file_variation8-win32.phpt
  M  ext/standard/tests/file/file_variation8.phpt
  M  ext/standard/tests/file/fopen_variation10-win32.phpt
  M  ext/standard/tests/file/fopen_variation11-win32.phpt
  M  ext/standard/tests/file/fopen_variation14-win32.phpt
  M  ext/standard/tests/file/fopen_variation14.phpt
  M  ext/standard/tests/file/fopen_variation15-win32.phpt
  M  ext/standard/tests/file/fopen_variation15.phpt
  M  ext/standard/tests/file/include_userstream_002.phpt
  M  ext/standard/tests/file/include_userstream_003.phpt
  M  ext/standard/tests/file/open_basedir_cwd_resolve.phpt
  M  ext/standard/tests/file/parse_ini_file_error.phpt
  M  ext/standard/tests/file/parse_ini_file_variation6-win32-mb.phpt
  M  ext/standard/tests/file/parse_ini_file_variation6-win32.phpt
  M  ext/standard/tests/file/parse_ini_file_variation6.phpt
  M  ext/standard/tests/file/php_fd_wrapper_03.phpt
  M  ext/standard/tests/file/php_fd_wrapper_04.phpt
  M  ext/standard/tests/file/readfile_error.phpt
  M  ext/standard/tests/file/readfile_variation10-win32.phpt
  M  ext/standard/tests/file/readfile_variation10.phpt
  M  ext/standard/tests/file/readfile_variation8-win32-mb.phpt
  M  ext/standard/tests/file/readfile_variation8-win32.phpt
  M  ext/standard/tests/file/readfile_variation9.phpt
  M  ext/standard/tests/file/stream_001.phpt
  M  ext/standard/tests/file/stream_rfc2397_002.phpt
  M  ext/standard/tests/file/stream_rfc2397_006.phpt
  M  ext/standard/tests/general_functions/bug44295-win.phpt
  M  ext/standard/tests/general_functions/bug44295.phpt
  M  ext/standard/tests/general_functions/parse_ini_file.phpt
  M  ext/standard/tests/general_functions/proc_open_pipes3.phpt
  M  ext/standard/tests/http/bug38802.phpt
  M  ext/standard/tests/http/bug47021.phpt
  M  ext/standard/tests/http/bug60570.phpt
  M  ext/standard/tests/http/bug69337.phpt
  M  ext/standard/tests/http/bug76342.phpt
  M  ext/standard/tests/http/gh16810.phpt
  M  ext/standard/tests/http/ghsa-52jp-hrpf-2jff-001.phpt
  M  ext/standard/tests/http/ghsa-52jp-hrpf-2jff-002.phpt
  M  ext/standard/tests/http/ghsa-c5f2-jwm7-mmq2.phpt
  M  ext/standard/tests/http/ghsa-pcmh-g36c-qc44-001.phpt
  M  ext/standard/tests/http/ghsa-pcmh-g36c-qc44-002.phpt
  M  ext/standard/tests/http/ghsa-v8xr-gpvj-cx9g-004.phpt
  M  ext/standard/tests/http/ghsa-v8xr-gpvj-cx9g-005.phpt
  M  ext/standard/tests/http/http_response_header_03.phpt
  M  ext/standard/tests/http/ignore_errors.phpt
  M  ext/standard/tests/image/getimagesize_variation3.phpt
  M  ext/standard/tests/mail/gh7875.phpt
  M  ext/standard/tests/streams/bug72771.phpt
  M  ext/standard/tests/streams/bug73457.phpt
  M  ext/standard/tests/streams/bug74951.phpt
  M  ext/standard/tests/streams/glob-wrapper.phpt
  M  ext/standard/tests/streams/opendir-001.phpt
  M  ext/standard/tests/streams/opendir-003.phpt
  M  ext/standard/tests/streams/stream_errors_error_has_code.phpt
  M  ext/standard/tests/streams/stream_errors_invalid_types.phpt
  M  ext/standard/tests/streams/stream_errors_silent_with_handler.phpt
  M  ext/standard/tests/streams/stream_errors_standard_error.phpt
  M  ext/standard/tests/strings/006.phpt
  M  ext/standard/tests/strings/007-win32.phpt
  M  ext/standard/tests/strings/007.phpt
  M  ext/standard/tests/strings/bug68996.phpt
  M  ext/standard/tests/strings/highlight_file.phpt
  M  ext/standard/tests/strings/md5_file.phpt
  M  ext/standard/tests/strings/php_strip_whitespace.phpt
  M  ext/standard/tests/strings/sha1.phpt
  M  ext/standard/tests/strings/sha1_file.phpt
  M  ext/zend_test/tests/gh17797.phpt
  M  ext/zend_test/tests/gh17899.phpt
  M  ext/zip/tests/bug53603.phpt
  M  ext/zip/tests/oo_encryption.phpt
  M  ext/zlib/tests/gzfile_variation7.phpt
  M  ext/zlib/tests/gzopen_variation9.phpt
  M  ext/zlib/tests/readgzfile_variation7.phpt
  M  ext/zlib/tests/zlib_scheme_dir_basic.phpt
  M  main/streams/php_stream_errors.h
  M  main/streams/stream_errors.c
  M  main/streams/streams.c
  M  sapi/cli/tests/bug69655.phpt
  M  sapi/cli/tests/bug70264.phpt
  M  sapi/cli/tests/bug73630a.phpt
  M  sapi/phpdbg/tests/bug78297.phpt
  M  tests/lang/bug28213.phpt
  M  tests/lang/bug35176.phpt
  M  tests/lang/bug43958.phpt
  M  tests/output/bug75236.phpt
  M  tests/security/open_basedir_copy.phpt
  M  tests/security/open_basedir_dir.phpt
  M  tests/security/open_basedir_error_log_variation.phpt
  M  tests/security/open_basedir_file.phpt
  M  tests/security/open_basedir_file_get_contents.phpt
  M  tests/security/open_basedir_file_put_contents.phpt
  M  tests/security/open_basedir_fopen.phpt
  M  tests/security/open_basedir_opendir.phpt
  M  tests/security/open_basedir_parse_ini_file.phpt
  M  tests/security/open_basedir_scandir.phpt


Diff exceeded maximum size.