iliaa           Sat Dec 17 16:33:53 2005 EDT

  Modified files:              
    /php-src    run-tests.php 
  Log:
  MFB51: Added token for capturing arbitrary whitespace blocks inside text.
  
  
http://cvs.php.net/viewcvs.cgi/php-src/run-tests.php?r1=1.259&r2=1.260&diff_format=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.259 php-src/run-tests.php:1.260
--- php-src/run-tests.php:1.259 Sat Dec 10 18:26:08 2005
+++ php-src/run-tests.php       Sat Dec 17 16:33:53 2005
@@ -23,7 +23,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: run-tests.php,v 1.259 2005/12/10 18:26:08 sniper Exp $ */
+/* $Id: run-tests.php,v 1.260 2005/12/17 16:33:53 iliaa 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
@@ -350,7 +350,7 @@
                                        $html_output = is_resource($html_file);
                                        break;
                                case '--version':
-                                       echo "$Revision: 1.259 $\n";
+                                       echo "$Revision: 1.260 $\n";
                                        exit(1);
                                default:
                                        echo "Illegal switch specified!\n";
@@ -1295,6 +1295,7 @@
                        // Stick to basics
                        $wanted_re = str_replace("%e", '\\' . 
DIRECTORY_SEPARATOR, $wanted_re);
                        $wanted_re = str_replace("%s", ".+?", $wanted_re); 
//not greedy
+                       $wanted_re = str_replace("%w", "\s*", $wanted_re);
                        $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);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to