iliaa Sat Dec 17 16:33:38 2005 EDT
Modified files: (Branch: PHP_5_1)
/php-src run-tests.php
Log:
Added token for capturing arbitrary whitespace blocks inside text.
http://cvs.php.net/viewcvs.cgi/php-src/run-tests.php?r1=1.226.2.13&r2=1.226.2.14&diff_format=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.226.2.13 php-src/run-tests.php:1.226.2.14
--- php-src/run-tests.php:1.226.2.13 Sat Dec 10 18:26:52 2005
+++ php-src/run-tests.php Sat Dec 17 16:33:38 2005
@@ -23,7 +23,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: run-tests.php,v 1.226.2.13 2005/12/10 18:26:52 sniper Exp $ */
+/* $Id: run-tests.php,v 1.226.2.14 2005/12/17 16:33:38 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
@@ -333,7 +333,7 @@
$html_output = is_resource($html_file);
break;
case '--version':
- echo "$Revision: 1.226.2.13 $\n";
+ echo "$Revision: 1.226.2.14 $\n";
exit(1);
default:
echo "Illegal switch '$switch'
specified!\n";
@@ -1224,6 +1224,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