zoe Mon Nov 12 18:26:37 2007 UTC
Modified files: (Branch: PHP_5_3)
/php-src run-tests.php
Log:
MFH: 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.226.2.37.2.35.2.1&r2=1.226.2.37.2.35.2.2&diff_format=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.226.2.37.2.35.2.1
php-src/run-tests.php:1.226.2.37.2.35.2.2
--- php-src/run-tests.php:1.226.2.37.2.35.2.1 Tue Nov 6 14:38:10 2007
+++ php-src/run-tests.php Mon Nov 12 18:26:37 2007
@@ -24,7 +24,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: run-tests.php,v 1.226.2.37.2.35.2.1 2007/11/06 14:38:10 helly Exp $ */
+/* $Id: run-tests.php,v 1.226.2.37.2.35.2.2 2007/11/12 18:26:37 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
@@ -400,7 +400,7 @@
$html_output = is_resource($html_file);
break;
case '--version':
- echo '$Revision: 1.226.2.37.2.35.2.1
$'."\n";
+ echo '$Revision: 1.226.2.37.2.35.2.2
$'."\n";
exit(1);
case 'u':
@@ -1494,7 +1494,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
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php