[php-src] PR #25981: Fix GH-25971: Format include and require in stack traces

From: Date: Tue, 01 Dec 2026 01:22:22 +0000
Subject: [php-src] PR #25981: Fix GH-25971: Format include and require in stack traces
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-41296@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25981 Author: jlu-lujing include, include_once, require, and require_once are language constructs, but exception stack traces format their frames like function calls. This changes the trace rendering to use the language-construct form, for example include '/path', while retaining the existing format for functions, methods, and eval(). Argument-free frames remain include/require without parentheses or trailing whitespace. Existing trace tests whose expected output changes have been updated, and a focused regression test was added. Tests: - New test fails before the change and passes after it. - Zend/tests: 4,936 passed, 148 skipped due to extensions omitted from the minimal build, 0 failed. - Affected CLI server, language, type-declaration, and trace tests pass. > OpenAI Codex assisted with investigating the trace formatter, preparing the focused code and > regression changes, and drafting this description. I reviewed and verified the resulting change > locally.

« previous php.git-pulls (#41296) next »