[php-src] Issue #15857: error formatting inconsistency regarding spaces

From: Date: Thu, 12 Sep 2024 14:10:42 +0000
Subject: [php-src] Issue #15857: error formatting inconsistency regarding spaces
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247764@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15857 Author: staabm ### Description running automated tests in private repo, I recently noticed that some error messages contain more spaces then other The following code: ```php <?php function subtract_no_lint($m { // intentional syntax error } ``` Resulted in this output: (note 2 spaces after Parse error:) ``` Parse error: syntax error, unexpected token "{", expecting ")" in does-not-lint.php on line 3 ``` But I expected this output instead: (note 1 space after Parse error:) ``` Parse error: syntax error, unexpected token "{", expecting ")" in does-not-lint.php on line 3 ``` I saw similar differences in the php-src testsuite, see e.g. <img width="976" alt="grafik" src="https://github.com/user-attachments/assets/59d916b4-45ef-481f-941f-6f4baf389140"> ### PHP Version 8.3.11 ### Operating System ubuntu / macos

« previous php.bugs (#247764) next »