kraghuba                Mon Dec 24 04:24:21 2007 UTC

  Modified files:              (Branch: PHP_5_2)
    /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.226.2.37.2.38&r2=1.226.2.37.2.39&diff_format=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.226.2.37.2.38 
php-src/run-tests.php:1.226.2.37.2.39
--- php-src/run-tests.php:1.226.2.37.2.38       Wed Dec 12 20:21:57 2007
+++ php-src/run-tests.php       Mon Dec 24 04:24:20 2007
@@ -24,7 +24,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: run-tests.php,v 1.226.2.37.2.38 2007/12/12 20:21:57 tony2001 Exp $ */
+/* $Id: run-tests.php,v 1.226.2.37.2.39 2007/12/24 04:24:20 kraghuba 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
@@ -403,7 +403,7 @@
                                        $html_output = is_resource($html_file);
                                        break;
                                case '--version':
-                                       echo '$Revision: 1.226.2.37.2.38 
$'."\n";
+                                       echo '$Revision: 1.226.2.37.2.39 
$'."\n";
                                        exit(1);
 
                                case 'u':
@@ -1517,7 +1517,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|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

Reply via email to