cvs: php4 / run-tests.php
| From: | Derick Rethans | Date: | Fri, 28 Mar 2003 21:04:46 +0000 |
| Subject: | cvs: php4 / run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-19826@lists.php.net to get a copy of this message | ||
derick Fri Mar 28 16:04:46 2003 EDT
Modified files:
/php4 run-tests.php
Log:
- Add the exponent to the float modifier
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.152 php4/run-tests.php:1.153
--- php4/run-tests.php:1.152 Fri Mar 21 12:17:54 2003
+++ php4/run-tests.php Fri Mar 28 16:04:45 2003
@@ -719,7 +719,7 @@
$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]+\.?[0-9]*", $wanted_re);
+ $wanted_re = str_replace("%f", "[+\-]?\.?[0-9]+\.?[0-9]*(E-?[0-9]+)?",
$wanted_re);
$wanted_re = str_replace("%c", ".", $wanted_re);
// %f allows two points "-.0.0" but that is the best *simple* expression
}