[php-src] Issue #8406: run-tests.php should generate code that has code line numbers equal to the original ones

From: Date: Wed, 20 Apr 2022 11:27:20 +0000
Subject: [php-src] Issue #8406: run-tests.php should generate code that has code line numbers equal to the original ones
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241093@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8406 Author: mvorisek ### Description For example this test: https://github.com/php/php-src/blob/PHP-8.0/ext/sockets/tests/socket_send.phpt#L26 fails on MacOS with the following result: ``` ========DIFF======== 002+ 003+ Warning: socket_send(): Unable to write to socket [22]: Invalid argument in /Users/runner/work/php-src/php-src/ext/sockets/tests/socket_send.php on line 14 okey okey 004- okey ========DONE======== FAIL int socket_send ( resource $socket , string $buf , int $len , int $flags ); [ext/sockets/tests/socket_send.phpt] ``` I expect the run-tests.php script to prepend: ``` <?php ?> ``` (and possible remove the ?><?php if the code to be run starts with <?php) so the original line numbers equal to the original ones, eg. the testing output is: ``` 002+ 003+ Warning: socket_send(): Unable to write to socket [22]: Invalid argument in /Users/runner/work/php-src/php-src/ext/sockets/tests/socket_send.php on line 26 okey okey 004- okey ========DONE======== FAIL int socket_send ( resource $socket , string $buf , int $len , int $flags ); [ext/sockets/tests/socket_send.phpt] ```

« previous php.bugs (#241093) next »