mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix run-tests.php for explicitly given test cases
The recent improvement to list skipped extensions explicitly[1] missed
to properly initialize `$ignored_by_ext` for the case where an explicit
set of test cases are given; this was not a problem previously, since
the undefined *global* variable was coerced to int. We fix this by
initializing the variable earlier.
[1] <baef47ef3e
>
Closes GH-9617.
This commit is contained in:
parent
01677cafae
commit
4ed01e3296
1 changed files with 1 additions and 1 deletions
|
@ -362,6 +362,7 @@ function main(): void
|
|||
$context_line_count = 3;
|
||||
$num_repeats = 1;
|
||||
$show_progress = true;
|
||||
$ignored_by_ext = [];
|
||||
|
||||
$cfgtypes = ['show', 'keep'];
|
||||
$cfgfiles = ['skip', 'php', 'clean', 'out', 'diff', 'exp', 'mem'];
|
||||
|
@ -735,7 +736,6 @@ function main(): void
|
|||
$test_files = [];
|
||||
$exts_tested = $exts_to_test;
|
||||
$exts_skipped = [];
|
||||
$ignored_by_ext = [];
|
||||
sort($exts_to_test);
|
||||
$test_dirs = [];
|
||||
$optionals = ['Zend', 'tests', 'ext', 'sapi'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue