]> granicus.if.org Git - php/commitdiff
Show eventual output of clean sections
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 28 Apr 2020 14:08:17 +0000 (16:08 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Tue, 28 Apr 2020 14:08:17 +0000 (16:08 +0200)
This is a hack to investigate why mysqli_insert_packet_overflow.phpt
intermittently fails on AppVeyor, and will be reverted in due time.
See <https://github.com/php/php-src/pull/5447#issuecomment-620508790>.

run-tests.php

index ffdb72a00ee32384b4dbcb42440cbbeab269b554..93d84cc73fdc0292f44030e025594b07460c8ef3 100755 (executable)
@@ -2497,7 +2497,10 @@ COMMAND $cmd
                 $clean_params = settings2params($clean_params);
                 $extra = !IS_WINDOWS ?
                     "unset REQUEST_METHOD; unset QUERY_STRING; unset PATH_TRANSLATED; unset SCRIPT_FILENAME; unset REQUEST_METHOD;" : "";
-                system_with_timeout("$extra $php $pass_options $extra_options -q $clean_params $no_file_cache \"$test_clean\"", $env);
+                $clean_output = system_with_timeout("$extra $php $pass_options $extra_options -q $clean_params $no_file_cache \"$test_clean\"", $env);
+                if (trim($clean_output) != '') {
+                    echo "\nCLEAN OUTPUT: $file: $clean_output\n";
+                }
             }
 
             if (!$cfg['keep']['clean']) {