]> granicus.if.org Git - php/commitdiff
Set display_startup_errors=0 when running skipif
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 10 Oct 2019 08:43:21 +0000 (10:43 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 10 Oct 2019 08:43:21 +0000 (10:43 +0200)
Now that we're displaying errors in skipif, suppress this particular
category. Otherwise we get warnings in the SKIPIF of tests with
EXTENSION where the extension does not exist, and there's no way
to suppress them.

run-tests.php

index 5083dce023e50c8b62486bf4260d826c36b4e32f..9ee7299f9c525c7b75daea9ee1124530513bd99b 100755 (executable)
@@ -2135,7 +2135,7 @@ TEST $file
 
                        junit_start_timer($shortname);
 
-                       $output = system_with_timeout("$extra $php $pass_options $extra_options -q $orig_ini_settings $no_file_cache -d display_errors=1 \"$test_skipif\"", $env);
+                       $output = system_with_timeout("$extra $php $pass_options $extra_options -q $orig_ini_settings $no_file_cache -d display_errors=1 -d display_startup_errors=0 \"$test_skipif\"", $env);
                        $output = trim($output);
 
                        junit_finish_timer($shortname);