]> granicus.if.org Git - php/commitdiff
MFH: make run-tests to work with directories containing spaces (bug #38558)
authorAntony Dovgal <tony2001@php.net>
Wed, 23 Aug 2006 07:02:59 +0000 (07:02 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 23 Aug 2006 07:02:59 +0000 (07:02 +0000)
Patch by danielc at analysisandsolutions dot com

run-tests.php

index 6d1aca85cb4236702b0113113f46913a7e4e7b60..a48ee69f2eb68154514a7f192b707c428c6a1395 100755 (executable)
@@ -192,13 +192,13 @@ More .INIs  : " . (function_exists(\'php_ini_scanned_files\') ? str_replace("\n"
        $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;'`);
+       define('TESTED_PHP_VERSION', `$php -r "echo PHP_VERSION;"`);
 
        // 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'),