scottmac                Thu Nov  6 03:08:58 2008 UTC

  Modified files:              
    /php-src    run-tests.php 
  Log:
  Support versions of valgrind from SVN. The version is shown as 3.4.0.SVN
  
  
  
http://cvs.php.net/viewvc.cgi/php-src/run-tests.php?r1=1.380&r2=1.381&diff_format=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.380 php-src/run-tests.php:1.381
--- php-src/run-tests.php:1.380 Sun Oct 19 18:04:35 2008
+++ php-src/run-tests.php       Thu Nov  6 03:08:58 2008
@@ -24,7 +24,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: run-tests.php,v 1.380 2008/10/19 18:04:35 johannes Exp $ */
+/* $Id: run-tests.php,v 1.381 2008/11/06 03:08:58 scottmac 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
@@ -543,7 +543,7 @@
                                        if (!$valgrind_header) {
                                                error("Valgrind returned no 
version info, cannot proceed.\nPlease check if Valgrind is installed.");
                                        } else {
-                                               $valgrind_version = 
preg_replace("/valgrind-([0-9])\.([0-9])\.([0-9]+)(-\w+)?(\s+)/", '$1$2$3', 
$valgrind_header, 1, $replace_count);
+                                               $valgrind_version = 
preg_replace("/valgrind-([0-9])\.([0-9])\.([0-9]+)([.-]\w+)?(\s+)/", '$1$2$3', 
$valgrind_header, 1, $replace_count);
                                                if ($replace_count != 1 || 
!is_numeric($valgrind_version)) {
                                                        error("Valgrind 
returned invalid version info (\"$valgrind_header\"), cannot proceed.");
                                                }
@@ -612,7 +612,7 @@
                                        $html_output = is_resource($html_file);
                                        break;
                                case '--version':
-                                       echo '$Revision: 1.380 $' . "\n";
+                                       echo '$Revision: 1.381 $' . "\n";
                                        exit(1);
 
                                default:



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

Reply via email to