From: Derick Rethans Date: Tue, 16 Dec 2003 14:53:43 +0000 (+0000) Subject: - Added %e modifier which gets replaced by the current value of X-Git-Tag: php-5.0.0b3RC1~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76ec811b3573fea59171610a4b7b19a634628bcb;p=php - Added %e modifier which gets replaced by the current value of DIRECTORY_SEPARATOR. --- diff --git a/run-tests.php b/run-tests.php index 0b4f6afa13..7efd0b4157 100755 --- a/run-tests.php +++ b/run-tests.php @@ -843,6 +843,8 @@ COMMAND $cmd if (isset($section_text['EXPECTF'])) { $wanted_re = preg_quote($wanted_re, '/'); // Stick to basics + $wanted_re = str_replace("%e", '\\' . DIRECTORY_SEPARATOR, $wanted_re); + echo $wanted_re; $wanted_re = str_replace("%s", ".+?", $wanted_re); //not greedy $wanted_re = str_replace("%i", "[+\-]?[0-9]+", $wanted_re); $wanted_re = str_replace("%d", "[0-9]+", $wanted_re);