summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorRaghubansh Kumar <kraghuba@php.net>2007-12-24 04:24:20 +0000
committerRaghubansh Kumar <kraghuba@php.net>2007-12-24 04:24:20 +0000
commit77245e4907b5ff95060c11eebc88e0d125043ce0 (patch)
tree1eb96058fa28232c1f4d1e3af3f4fb268a3725bc /run-tests.php
parentbb52c198ceffdca0cf1904d4deeb50a2ce596d7c (diff)
downloadphp-git-77245e4907b5ff95060c11eebc88e0d125043ce0.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 35d8e72ff4..3eaa7ab4fc 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -1517,7 +1517,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
}