[PHP-DEV] Stream Error Degradation: They're now missing what can't be opened

[email protected] (Derick Rethans) Fri, 24 Jul 2026 11:51:37 +0100 (BST)
Newsgroups php.internals
Message-ID <[email protected]>
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--8323329-1047683906-1784890297=:93781
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: QUOTED-PRINTABLE

Hi,

Since the last few days, some of my tests for Xdebug started failing=20
with latest master: https://xdebug.org/ci?r=3D2026-07-24-03-30-01@master

Through commit https://github.com/php/php-src/commit/34c686a5b4ef, the=20
filenames and dirnames are removed as argument, from the warnings/errors=20
to include, require, etc =E2=80=94 as a result of=20
https://wiki.php.net/rfc/display_error_function_args

While that is perhaps a noble goal, not showing which file couldn't be=20
included in many situations, such as:

Warning: include(): Failed to open stream: No such file or directory in %si=
nclude_path.php on line %d
Warning: require_once(): Failed to open stream: No such file or directory i=
n /tmp/ptester-1001/thread/12/master/tmp-xdebug/tests/base/bug02307-002.php=
 on line 9

And also in many other functions:

Warning: bzopen(): Failed to open stream: No such file or directory in %s o=
n line %d
Warning: dba_open(): Failed to open stream: No such file or directory in %s=
 on line %d
Warning: finfo_open(): Failed to open stream: No such file or directory in =
%s on line %d
Warning: imagecreatefrompng(): Failed to open stream: No such file or direc=
tory in %s on line %d

Doesn't seem to me like an enhanced for users, which would likely very=20
much to know which file is being included/required/bzopen'ed, etc.

I think we ought to fix this situations by included the file/directory=20
that can't be opened in the error messages themselves. Or if that is not=20
possible, then I would probably suggest to revert this change (even=20
though it was RFC'ed) until there is a possibility for not degrading the=20
usefulness of our error messages.

cheers,
Derick

--=20
https://derickrethans.nl | https://xdebug.org | https://xdebug.cloud
Author of Xdebug. Like it? Consider supporting me: https://xdebug.org/suppo=
rt
mastodon: @[email protected] @[email protected]
--8323329-1047683906-1784890297=:93781--