diff options
author | Marcus Boerger <helly@php.net> | 2002-10-24 18:14:39 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-10-24 18:14:39 +0000 |
commit | 071878507689ba5b48696375e641f7cb95737c31 (patch) | |
tree | 6cf49e80f5b699fe34bbd62933983fd15cab0497 /run-tests.php | |
parent | 80109314b918e776205003212e494bfbf4a559a3 (diff) | |
download | php-git-071878507689ba5b48696375e641f7cb95737c31.tar.gz |
-improoved number detection
-display every error/warning only once
Diffstat (limited to 'run-tests.php')
-rwxr-xr-x | run-tests.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/run-tests.php b/run-tests.php index 777d875a66..db98bfaa61 100755 --- a/run-tests.php +++ b/run-tests.php @@ -483,7 +483,8 @@ TEST $file "-d 'open_basedir='", "-d 'disable_functions='", "-d 'error_reporting=2047'", - "-d 'display_errors=1'", + "-d 'display_errors=0'", + "-d 'log_errors=1'", "-d 'html_errors=0'", "-d 'docref_root=/phpmanual/'", "-d 'docref_ext=.html'", @@ -564,10 +565,11 @@ COMMAND $cmd $wanted_re = preg_quote($wanted_re, '/'); // Stick to basics $wanted_re = str_replace("%s", ".+?", $wanted_re); //not greedy - $wanted_re = str_replace("%i", "[0-9]+", $wanted_re); + $wanted_re = str_replace("%i", "[+\-]?[0-9]+", $wanted_re); $wanted_re = str_replace("%d", "[0-9]+", $wanted_re); $wanted_re = str_replace("%x", "[0-9a-fA-F]+", $wanted_re); - $wanted_re = str_replace("%f", "[0-9\.+\-]+", $wanted_re); + $wanted_re = str_replace("%f", "[+\-]?\.?[0-9]+\.?[0-9]*", $wanted_re); + // %f allows two points "-.0.0" but that is the best *simple* expression /* DEBUG YOUR REGEX HERE var_dump($wanted); print(str_repeat('=', 80) . "\n"); |