diff options
author | Dmitry Stogov <dmitry@zend.com> | 2019-02-19 19:22:42 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2019-02-19 19:22:42 +0300 |
commit | b2073253bf82fdd7feb3f219e442fa3e4a39ea9e (patch) | |
tree | 4978e11d9ba39adb1a2e45636a303b401cb133a2 /run-tests.php | |
parent | 723acab660081c2e8c023c34c0fadb088eb13244 (diff) | |
download | php-git-b2073253bf82fdd7feb3f219e442fa3e4a39ea9e.tar.gz |
Better new-line handling
Diffstat (limited to 'run-tests.php')
-rwxr-xr-x | run-tests.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php index 42aa51ce6a..49da8c95bc 100755 --- a/run-tests.php +++ b/run-tests.php @@ -2523,7 +2523,7 @@ COMMAND $cmd show_file_block('out', $output); if ($preload) { - $output = trim(preg_replace("/Warning: Can't preload .*$/m", "", $output)); + $output = trim(preg_replace("/\n?Warning: Can't preload [^\n]*\n?/", "", $output)); } if (isset($section_text['EXPECTF']) || isset($section_text['EXPECTREGEX'])) { |