johannes                Sun Oct 19 18:04:35 2008 UTC

  Modified files:              
    /php-src    run-tests.php 
  Log:
  Add %S and %A to EXPECTF, they work like %s and %a but match empty strings, 
too
  
http://cvs.php.net/viewvc.cgi/php-src/run-tests.php?r1=1.379&r2=1.380&diff_format=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.379 php-src/run-tests.php:1.380
--- php-src/run-tests.php:1.379 Tue Sep 30 13:21:17 2008
+++ php-src/run-tests.php       Sun Oct 19 18:04:35 2008
@@ -24,7 +24,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: run-tests.php,v 1.379 2008/09/30 13:21:17 rrichards Exp $ */
+/* $Id: run-tests.php,v 1.380 2008/10/19 18:04:35 johannes 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
@@ -612,7 +612,7 @@
                                        $html_output = is_resource($html_file);
                                        break;
                                case '--version':
-                                       echo '$Revision: 1.379 $' . "\n";
+                                       echo '$Revision: 1.380 $' . "\n";
                                        exit(1);
 
                                default:
@@ -1752,7 +1752,9 @@
                        // Stick to basics
                        $wanted_re = str_replace('%e', '\\' . 
DIRECTORY_SEPARATOR, $wanted_re);
                        $wanted_re = str_replace('%s', '[^\r\n]+', $wanted_re);
+                       $wanted_re = str_replace('%S', '[^\r\n]*', $wanted_re);
                        $wanted_re = str_replace('%a', '.+', $wanted_re);
+                       $wanted_re = str_replace('%A', '.*', $wanted_re);
                        $wanted_re = str_replace('%w', '\s*', $wanted_re);
                        $wanted_re = str_replace('%i', '[+-]?\d+', $wanted_re);
                        $wanted_re = str_replace('%d', '\d+', $wanted_re);



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

Reply via email to