[php-src] master: run-tests: Fix warning when specifying xdebug as a required extension

From: Date: Sun, 25 Apr 2021 20:06:52 +0000
Subject: [php-src] master: run-tests: Fix warning when specifying xdebug as a required extension
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-115799@lists.php.net to get a copy of this message
Author: Mark Gallagher (maaarghk) Committer: Nikita Popov (nikic) Date: 2021-04-25T22:07:00+02:00 Commit: https://github.com/php/php-src/commit/39876ba1c6767f8108905347281915c2624daf20 Raw diff: https://github.com/php/php-src/commit/39876ba1c6767f8108905347281915c2624daf20.diff run-tests: Fix warning when specifying xdebug as a required extension Changed paths: M run-tests.php Diff: diff --git a/run-tests.php b/run-tests.php index 3b11bf2c2ad4..b7eadf4da831 100755 --- a/run-tests.php +++ b/run-tests.php @@ -2056,7 +2056,7 @@ function run_test(string $php, $file, array $env): string $missing = []; foreach ($extensions as $req_ext) { if (!in_array(strtolower($req_ext), $loaded)) { - if ($req_ext == 'opcache') { + if ($req_ext == 'opcache' || $req_ext == 'xdebug') { $ext_file = $ext_dir . DIRECTORY_SEPARATOR . $ext_prefix . $req_ext . '.' . PHP_SHLIB_SUFFIX; $ini_settings['zend_extension'][] = $ext_file; } else {

« previous php.cvs (#115799) next »