]> granicus.if.org Git - php/commitdiff
Better line handling
authorDmitry Stogov <dmitry@zend.com>
Tue, 19 Feb 2019 14:16:48 +0000 (17:16 +0300)
committerDmitry Stogov <dmitry@zend.com>
Tue, 19 Feb 2019 14:16:48 +0000 (17:16 +0300)
run-tests.php

index 53ef88c20b3c651b75187235f41980f9264029a2..198b8f476552954e92226ffbdaeaec050469fb93 100755 (executable)
@@ -2528,7 +2528,7 @@ COMMAND $cmd
        show_file_block('out', $output);
 
        if ($preload) {
-               $output = trim(preg_replace("/Warning: Can't preload .*\n/", "", $output));
+               $output = trim(preg_replace("/Warning: Can't preload .*$/m", "", $output));
        }
 
        if (isset($section_text['EXPECTF']) || isset($section_text['EXPECTREGEX'])) {