summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2019-02-19 19:22:42 +0300
committerDmitry Stogov <dmitry@zend.com>2019-02-19 19:22:42 +0300
commitb2073253bf82fdd7feb3f219e442fa3e4a39ea9e (patch)
tree4978e11d9ba39adb1a2e45636a303b401cb133a2 /run-tests.php
parent723acab660081c2e8c023c34c0fadb088eb13244 (diff)
downloadphp-git-b2073253bf82fdd7feb3f219e442fa3e4a39ea9e.tar.gz
Better new-line handling
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php2
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'])) {