summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrun-tests.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/run-tests.php b/run-tests.php
index ced680f494..c9a43f939c 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -1736,6 +1736,11 @@ COMMAND $cmd
version_compare(PHP_VERSION, '6.0.0-dev') == -1 ? 'string' : 'unicode',
$wanted_re
);
+ $wanted_re = str_replace(
+ array('%u\|b%', '%b\|u%'),
+ version_compare(PHP_VERSION, '6.0.0-dev') == -1 ? '' : 'u',
+ $wanted_re
+ );
// Stick to basics
$wanted_re = str_replace('%e', '\\' . DIRECTORY_SEPARATOR, $wanted_re);
$wanted_re = str_replace('%s', '[^\r\n]+', $wanted_re);