summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2002-10-08 17:51:57 +0000
committerDerick Rethans <derick@php.net>2002-10-08 17:51:57 +0000
commit4fcc3df5eb3c878da1a96530c56ccbcd82e2516f (patch)
tree1ebaeb2e92b5fd6b01e7d40b9b74aca298c5405a
parent6882bdc24bee8c77d742aaa1797e4b420ace794b (diff)
downloadphp-git-4fcc3df5eb3c878da1a96530c56ccbcd82e2516f.tar.gz
- Fix .exp output
-rwxr-xr-xrun-tests.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/run-tests.php b/run-tests.php
index 8d914c3fe2..b814c6ec73 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -409,18 +409,18 @@ COMMAND $cmd
if (isset($section_text['EXPECTF'])) {
$wanted = trim($section_text['EXPECTF']);
- $wanted = preg_replace('/\r\n/',"\n",$wanted);
- $wanted = preg_quote($wanted, '/');
+ $wanted_re = preg_replace('/\r\n/',"\n",$wanted);
+ $wanted_re = preg_quote($wanted_re, '/');
// Stick to basics
- $wanted = str_replace("%s", ".*?", $wanted); //not greedy
- $wanted = str_replace("%i", "[0-9]+", $wanted);
- $wanted = str_replace("%f", "[0-9\.+\-]+", $wanted);
+ $wanted_re = str_replace("%s", ".*?", $wanted_re); //not greedy
+ $wanted_re = str_replace("%i", "[0-9]+", $wanted_re);
+ $wanted_re = str_replace("%f", "[0-9\.+\-]+", $wanted_re);
/* DEBUG YOUR REGEX HERE
var_dump($wanted);
print(str_repeat('=', 80) . "\n");
var_dump($output);
*/
- if (preg_match("/$wanted/s", $output)) {
+ if (preg_match("/$wanted_re/s", $output)) {
echo "PASS $tested\n";
return 'PASSED';
}