[php-src] PR #25938: Fix GH-25936: Wrong line for T_INLINE_HTML after __halt_compiler()?>
| From: | lazerg | Date: | Mon, 30 Nov 2026 10:51:54 +0000 |
| Subject: | [php-src] PR #25938: Fix GH-25936: Wrong line for T_INLINE_HTML after __halt_compiler()?> | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-41237@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25938
Author: lazerg
When
?> right after __halt_compiler() eats a newline, the scanner only
sets CG(increment_lineno) and the line gets bumped before the next token. The tokenizer
stops right there and adds the trailing T_INLINE_HTML with the old line, so it is one
line too low. Both the plain and the TOKEN_PARSE paths now add the pending increment.
Fixes #25936