Lines Matching refs:section_text
1231 $section_text = array('TEST' => '');
1270 if (isset($section_text[$section])) {
1275 $section_text[$section] = '';
1283 $section_text[$section] .= $line;
1295 if (@count($section_text['REDIRECTTEST']) == 1) {
1306 …if (!isset($section_text['PHPDBG']) && @count($section_text['FILE']) + @count($section_text['FILEE…
1311 if (@count($section_text['FILEEOF']) == 1) {
1312 $section_text['FILE'] = preg_replace("/[\r\n]+$/", '', $section_text['FILEEOF']);
1313 unset($section_text['FILEEOF']);
1319 if (@count($section_text[$key]) == 1) {
1321 $section_text[$key] = dirname($file) . '/' . trim(str_replace('..', '', $section_text[$key]));
1323 if (file_exists($section_text[$key])) {
1324 $section_text[$prefix] = file_get_contents($section_text[$key], FILE_BINARY);
1325 unset($section_text[$key]);
1327 …$bork_info = "could not load --" . $key . "-- " . dirname($file) . '/' . trim($section_text[$key]);
1333 …if ((@count($section_text['EXPECT']) + @count($section_text['EXPECTF']) + @count($section_text['EX…
1358 $tested = trim($section_text['TEST']);
1361 …section_text['GET']) || !empty($section_text['POST']) || !empty($section_text['GZIP_POST']) || !em…
1390 if (array_key_exists('PHPDBG', $section_text)) {
1391 if (!isset($section_text['STDIN'])) {
1392 $section_text['STDIN'] = $section_text['PHPDBG']."\n";
1448 if (isset($section_text['FILE'])) {
1449 save_text($copy_file, $section_text['FILE']);
1466 $tested = $IN_REDIRECT['prefix'] . ' ' . trim($section_text['TEST']);
1495 if (!empty($section_text['ENV'])) {
1497 foreach(explode("\n", trim($section_text['ENV'])) as $e) {
1510 if (array_key_exists('EXTENSIONS', $section_text)) {
1515 $extensions = preg_split("/[\n\r]+/", trim($section_text['EXTENSIONS']));
1535 if (array_key_exists('INI', $section_text)) {
1536 if (strpos($section_text['INI'], '{PWD}') !== false) {
1537 $section_text['INI'] = str_replace('{PWD}', dirname($file), $section_text['INI']);
1539 settings2array(preg_split( "/[\n\r]+/", $section_text['INI']), $ini_settings);
1548 if (array_key_exists('SKIPIF', $section_text)) {
1550 if (trim($section_text['SKIPIF'])) {
1551 show_file_block('skip', $section_text['SKIPIF']);
1552 save_text($test_skipif, $section_text['SKIPIF'], $temp_skipif);
1610 $section_text['XFAIL'] = trim(substr(ltrim($output), 5));
1616 && ( array_key_exists("GZIP_POST", $section_text)
1617 || array_key_exists("DEFLATE_POST", $section_text))
1625 if (@count($section_text['REDIRECTTEST']) == 1) {
1628 $IN_REDIRECT = eval($section_text['REDIRECTTEST']);
1631 $IN_REDIRECT['prefix'] = trim($section_text['TEST']);
1679 if (is_array($org_file) || @count($section_text['REDIRECTTEST']) == 1) {
1701 if (isset($section_text['FILE'])) {
1702 show_file_block('php', $section_text['FILE'], 'TEST');
1703 save_text($test_file, $section_text['FILE'], $temp_file);
1708 if (array_key_exists('GET', $section_text)) {
1709 $query_string = trim($section_text['GET']);
1725 if (array_key_exists('COOKIE', $section_text)) {
1726 $env['HTTP_COOKIE'] = trim($section_text['COOKIE']);
1731 $args = isset($section_text['ARGS']) ? ' -- ' . $section_text['ARGS'] : '';
1733 if (array_key_exists('POST_RAW', $section_text) && !empty($section_text['POST_RAW'])) {
1735 $post = trim($section_text['POST_RAW']);
1767 } elseif (array_key_exists('PUT', $section_text) && !empty($section_text['PUT'])) {
1769 $post = trim($section_text['PUT']);
1801 } else if (array_key_exists('POST', $section_text) && !empty($section_text['POST'])) {
1803 $post = trim($section_text['POST']);
1818 } else if (array_key_exists('GZIP_POST', $section_text) && !empty($section_text['GZIP_POST'])) {
1820 $post = trim($section_text['GZIP_POST']);
1833 …} else if (array_key_exists('DEFLATE_POST', $section_text) && !empty($section_text['DEFLATE_POST']…
1834 $post = trim($section_text['DEFLATE_POST']);
1888 …$out = system_with_timeout($cmd, $env, isset($section_text['STDIN']) ? $section_text['STDIN'] : nu…
1892 if (array_key_exists('CLEAN', $section_text) && (!$no_clean || $cfg['keep']['clean'])) {
1894 if (trim($section_text['CLEAN'])) {
1895 show_file_block('clean', $section_text['CLEAN']);
1896 save_text($test_clean, trim($section_text['CLEAN']), $temp_clean);
1947 if (isset($section_text['EXPECTHEADERS'])) {
1950 $lines = preg_split("/[\n\r]+/", $section_text['EXPECTHEADERS']);
1984 if (isset($section_text['EXPECTF']) || isset($section_text['EXPECTREGEX'])) {
1986 if (isset($section_text['EXPECTF'])) {
1987 $wanted = trim($section_text['EXPECTF']);
1989 $wanted = trim($section_text['EXPECTREGEX']);
1995 if (isset($section_text['EXPECTF'])) {
2074 if (isset($section_text['XFAIL'] )) {
2087 $wanted = trim($section_text['EXPECT']);
2104 if (isset($section_text['XFAIL'] )) {
2138 if (isset($section_text['XFAIL'])) {
2140 $info = ' XFAIL REASON: ' . rtrim($section_text['XFAIL']);