tony2001                Wed Aug 23 07:02:26 2006 UTC

  Modified files:              
    /php-src    run-tests.php 
  Log:
  make run-tests to work with directories containing spaces (bug #38558)
  
  
http://cvs.php.net/viewvc.cgi/php-src/run-tests.php?r1=1.305&r2=1.306&diff_format=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.305 php-src/run-tests.php:1.306
--- php-src/run-tests.php:1.305 Tue Aug 22 05:01:15 2006
+++ php-src/run-tests.php       Wed Aug 23 07:02:26 2006
@@ -23,7 +23,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: run-tests.php,v 1.305 2006/08/22 05:01:15 dmitry Exp $ */
+/* $Id: run-tests.php,v 1.306 2006/08/23 07:02:26 tony2001 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
@@ -177,7 +177,7 @@
        $info_params = array();
        settings2array($ini_overwrites,$info_params);
        settings2params($info_params);
-       $php_info = `$php $pass_options $info_params $info_file`;
+       $php_info = `$php $pass_options $info_params "$info_file"`;
        @unlink($info_file);
        define('TESTED_PHP_VERSION', `$php -r "echo PHP_VERSION;"`);
 
@@ -186,7 +186,7 @@
 
        // load list of enabled extensions
        save_text($info_file, '<?php echo join(",",get_loaded_extensions()); 
?>');
-       $exts_to_test = explode(',',`$php $pass_options $info_params 
$info_file`);
+       $exts_to_test = explode(',',`$php $pass_options $info_params 
"$info_file"`);
        // check for extensions that need special handling and regenerate
        $info_params_ex = array(
                'session' => array('session.auto_start=0'),
@@ -400,7 +400,7 @@
                                        $html_output = is_resource($html_file);
                                        break;
                                case '--version':
-                                       echo '$Revision: 1.305 $'."\n";
+                                       echo '$Revision: 1.306 $'."\n";
                                        exit(1);
                                default:
                                        echo "Illegal switch specified!\n";

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

Reply via email to