[php-src] PR #11480: run-tests.php fixes
| From: | divinity76 | Date: | Mon, 19 Jun 2023 14:04:38 +0000 |
| Subject: | [php-src] PR #11480: run-tests.php fixes | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22760@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11480
Author: divinity76
if php was compiled with
./configure --disable-cgi --enable-cli
then this would happen previously:
>PHP Deprecated: escapeshellarg(): Passing null to parameter Kùòâ¦Ãž£»âhhI:2
>https://github.com/php/php-src/pull/1 ($arg) of type string is deprecated in
>/home/hans/projects/php-src/run-tests.php on line 687
>PHP Deprecated: escapeshellarg(): Passing null to parameter
>https://github.com/php/php-src/pull/1 ($arg) of type string is
>deprecated in /home/hans/projects/php-src/run-tests.php on line 688
also did some miscellaneous fixes/improvements, for example
```
$pass_options .= " -d opcache.preload=" . $preload_filename;
```
would fail if $preload_filename had whitespace in it.
and replaced some regex-number-checks with FILTER_VALIDATE_INT.
and fixed an issue where command-line-arguments were escaped with addslashes() instead of
escapeshellarg()
(btw i have issues with escapeshellarg() which you can read more about here https://github.com/divinity76/phpquoteshellarg
, but i don't intend to address that issue in this PR)