cvs: php-src / run-tests.php
| From: | Zoe Slattery | Date: | Mon, 12 Nov 2007 18:22:10 +0000 |
| Subject: | cvs: php-src / run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-47120@lists.php.net to get a copy of this message | ||
zoe Mon Nov 12 18:22:10 2007 UTC
Modified files:
/php-src run-tests.php
Log:
Changing the regex for %f so the it will match E-, E+ and E.
http://cvs.php.net/viewvc.cgi/php-src/run-tests.php?r1=1.330&r2=1.331&diff_format=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.330 php-src/run-tests.php:1.331
--- php-src/run-tests.php:1.330 Fri Sep 14 15:36:29 2007
+++ php-src/run-tests.php Mon Nov 12 18:22:10 2007
@@ -24,7 +24,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: run-tests.php,v 1.330 2007/09/14 15:36:29 nlopess Exp $ */
+/* $Id: run-tests.php,v 1.331 2007/11/12 18:22:10 zoe Exp $ */
/* Sanity check to ensure that pcre extension needed by this script is available.
* In the event it is not, print a nice error message indicating that this script will
@@ -407,7 +407,7 @@
$html_output = is_resource($html_file);
break;
case '--version':
- echo '$Revision: 1.330 $'."\n";
+ echo '$Revision: 1.331 $'."\n";
exit(1);
default:
echo "Illegal switch specified!\n";
@@ -1557,7 +1557,7 @@
$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[+-]?\d+)?',
$wanted_re);
$wanted_re = str_replace('%c', '.', $wanted_re);
// %f allows two points "-.0.0" but that is the best *simple* expression
}