summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorRaghubansh Kumar <kraghuba@php.net>2007-12-24 04:23:04 +0000
committerRaghubansh Kumar <kraghuba@php.net>2007-12-24 04:23:04 +0000
commite54a85595591d669cbe17a1b3ce31f5db12e4f38 (patch)
treed247e8637dd5b0d5691cfe0cbb6eecfff54c1777 /run-tests.php
parent1b6100f4c1b5e16bd1bc24843aa98b2b0d401218 (diff)
downloadphp-git-e54a85595591d669cbe17a1b3ce31f5db12e4f38.tar.gz
Changing the regex for %f so the it will match e-, e+ and e.
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 1eaa62a8e0..f06f3b745b 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -1537,7 +1537,7 @@ COMMAND $cmd
$wanted_re = str_replace('%i', '[+-]?\d+', $wanted_re);
$wanted_re = str_replace('%d', '\d+', $wanted_re);
$wanted_re = str_replace('%x', '[0-9a-fA-F]+', $wanted_re);
- $wanted_re = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:E[+-]?\d+)?', $wanted_re);
+ $wanted_re = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:E|e[+-]?\d+)?', $wanted_re);
$wanted_re = str_replace('%c', '.', $wanted_re);
// %f allows two points "-.0.0" but that is the best *simple* expression
}