cvs: php-src(PHP_5_3) / run-tests.php

From: Date: Tue, 25 Dec 2007 12:06:34 +0000
Subject: cvs: php-src(PHP_5_3) / run-tests.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-47592@lists.php.net to get a copy of this message
dmitry Tue Dec 25 12:06:34 2007 UTC Modified files: (Branch: PHP_5_3) /php-src run-tests.php Log: Fixed %f regex http://cvs.php.net/viewvc.cgi/php-src/run-tests.php?r1=1.226.2.37.2.35.2.8&r2=1.226.2.37.2.35.2.9&diff_format=u Index: php-src/run-tests.php diff -u php-src/run-tests.php:1.226.2.37.2.35.2.8 php-src/run-tests.php:1.226.2.37.2.35.2.9 --- php-src/run-tests.php:1.226.2.37.2.35.2.8 Mon Dec 24 04:23:04 2007 +++ php-src/run-tests.php Tue Dec 25 12:06:34 2007 @@ -24,7 +24,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: run-tests.php,v 1.226.2.37.2.35.2.8 2007/12/24 04:23:04 kraghuba Exp $ */ +/* $Id: run-tests.php,v 1.226.2.37.2.35.2.9 2007/12/25 12:06:34 dmitry 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 @@ -408,7 +408,7 @@ $html_output = is_resource($html_file); break; case '--version': - echo '$Revision: 1.226.2.37.2.35.2.8 $'."\n"; + echo '$Revision: 1.226.2.37.2.35.2.9 $'."\n"; exit(1); case 'u': @@ -1537,7 +1537,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|e[+-]?\d+)?', $wanted_re); + $wanted_re = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:[Ee][+-]?\d+)?', $wanted_re); $wanted_re = str_replace('%c', '.', $wanted_re); // %f allows two points "-.0.0" but that is the best *simple* expression }

« previous php.cvs (#47592) next »