From: Marcus Boerger Date: Sun, 12 Feb 2006 18:51:12 +0000 (+0000) Subject: - Synch X-Git-Tag: php-5.1.3RC1~113 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c614f8f8feb8a92e9f89d184beab3fa03facd93;p=php - Synch --- diff --git a/run-tests.php b/run-tests.php index 3f711047cf..268cdb62a9 100755 --- a/run-tests.php +++ b/run-tests.php @@ -330,6 +330,9 @@ if (isset($argc) && $argc > 1) { } $pass_option_n = true; break; + case 'N': + // this is always native + break; case '--no-clean': $no_clean = true; break; @@ -420,6 +423,8 @@ Options: -m Test for memory leaks with Valgrind. + -N Always set (Test with unicode_semantics set off in PHP 6). + -s Write output to . -q Quite, no user interaction (same as environment NO_INTERACTION). @@ -1104,15 +1109,27 @@ TEST $file } } + // Default ini settings + $ini_settings = array(); + // additional ini overwrites + //$ini_overwrites[] = 'setting=value'; + settings2array($ini_overwrites, $ini_settings); + + // Any special ini settings + // these may overwrite the test defaults... + if (array_key_exists('INI', $section_text)) { + if (strpos($section_text['INI'], '{PWD}') !== false) { + $section_text['INI'] = str_replace('{PWD}', dirname($file), $section_text['INI']); + } + settings2array(preg_split( "/[\n\r]+/", $section_text['INI']), $ini_settings); + } + settings2params($ini_settings); + // Check if test should be skipped. $info = ''; $warn = false; if (array_key_exists('SKIPIF', $section_text)) { if (trim($section_text['SKIPIF'])) { - $skipif_params = array(); - settings2array($ini_overwrites,$skipif_params); - settings2params($skipif_params); - if ($cfg['show']['skip']) { echo "\n========SKIP========\n"; echo $section_text['SKIPIF']; @@ -1121,7 +1138,7 @@ TEST $file save_text($test_skipif, $section_text['SKIPIF'], $temp_skipif); $extra = substr(PHP_OS, 0, 3) !== "WIN" ? "unset REQUEST_METHOD; unset QUERY_STRING; unset PATH_TRANSLATED; unset SCRIPT_FILENAME; unset REQUEST_METHOD;": ""; - $output = system_with_timeout("$extra $php -q $skipif_params $test_skipif", $env); + $output = system_with_timeout("$extra $php -q $ini_settings $test_skipif", $env); if (!$cfg['keep']['skip']) { @unlink($test_skipif); } @@ -1207,23 +1224,6 @@ TEST $file return 'BORKED'; } - - // Default ini settings - $ini_settings = array(); - // additional ini overwrites - //$ini_overwrites[] = 'setting=value'; - settings2array($ini_overwrites, $ini_settings); - - // Any special ini settings - // these may overwrite the test defaults... - if (array_key_exists('INI', $section_text)) { - if (strpos($section_text['INI'], '{PWD}') !== false) { - $section_text['INI'] = str_replace('{PWD}', dirname($file), $section_text['INI']); - } - settings2array(preg_split( "/[\n\r]+/", $section_text['INI']), $ini_settings); - } - settings2params($ini_settings); - // We've satisfied the preconditions - run the test! if ($cfg['show']['php']) { echo "\n========TEST========\n";