[php-src] Issue #22849: PHP 8.6 `error_include_args=1` mishandled for `include()`

From: Date: Tue, 21 Jul 2026 14:26:33 +0000
Subject: [php-src] Issue #22849: PHP 8.6 `error_include_args=1` mishandled for `include()`
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-252463@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/22849 Author: TimWolla ### Description The following code: ```php <?php ini_set('error_include_args', '1'); function foo() { include("does not exist"); } foo(1, 2); ``` Resulted in this output: ``` Warning: include(1, 2): Failed to open stream: No such file or directory in /tmp/test3.php on line 6 Warning: include(1, 2): Failed opening 'does not exist' for inclusion (include_path='.:') in /tmp/test3.php on line 6 ``` But I expected this output instead: ``` Warning: include("does not exist"): Failed to open stream: No such file or directory in /tmp/test3.php on line 6 Warning: include("does not exist"): Failed opening 'does not exist' for inclusion (include_path='.:') in /tmp/test3.php on line 6 ``` ### PHP Version ```plain git master ``` ### Operating System _No response_

« previous php.bugs (#252463) next »