Lines Matching refs:section_text

1287 	$section_text = array('TEST' => '');
1326 if (isset($section_text[$section])) {
1331 $section_text[$section] = '';
1339 $section_text[$section] .= $line;
1351 if (@count($section_text['REDIRECTTEST']) == 1) {
1362 …if (!isset($section_text['PHPDBG']) && @count($section_text['FILE']) + @count($section_text['FILEE…
1367 if (@count($section_text['FILEEOF']) == 1) {
1368 $section_text['FILE'] = preg_replace("/[\r\n]+$/", '', $section_text['FILEEOF']);
1369 unset($section_text['FILEEOF']);
1375 if (@count($section_text[$key]) == 1) {
1377 $section_text[$key] = dirname($file) . '/' . trim(str_replace('..', '', $section_text[$key]));
1379 if (file_exists($section_text[$key])) {
1380 $section_text[$prefix] = file_get_contents($section_text[$key], FILE_BINARY);
1381 unset($section_text[$key]);
1383 …$bork_info = "could not load --" . $key . "-- " . dirname($file) . '/' . trim($section_text[$key]);
1389 …if ((@count($section_text['EXPECT']) + @count($section_text['EXPECTF']) + @count($section_text['EX…
1414 if (isset($section_text['CAPTURE_STDIO'])) {
1415 $captureStdIn = stripos($section_text['CAPTURE_STDIO'], 'STDIN') !== false;
1416 $captureStdOut = stripos($section_text['CAPTURE_STDIO'], 'STDOUT') !== false;
1417 $captureStdErr = stripos($section_text['CAPTURE_STDIO'], 'STDERR') !== false;
1429 $tested = trim($section_text['TEST']);
1432section_text['GET']) || !empty($section_text['POST']) || !empty($section_text['GZIP_POST']) || !em…
1461 if (array_key_exists('PHPDBG', $section_text)) {
1462 if (!isset($section_text['STDIN'])) {
1463 $section_text['STDIN'] = $section_text['PHPDBG']."\n";
1519 if (isset($section_text['FILE'])) {
1520 save_text($copy_file, $section_text['FILE']);
1537 $tested = $IN_REDIRECT['prefix'] . ' ' . trim($section_text['TEST']);
1566 if (!empty($section_text['ENV'])) {
1568 foreach(explode("\n", trim($section_text['ENV'])) as $e) {
1581 if (array_key_exists('EXTENSIONS', $section_text)) {
1586 $extensions = preg_split("/[\n\r]+/", trim($section_text['EXTENSIONS']));
1606 if (array_key_exists('INI', $section_text)) {
1607 $section_text['INI'] = str_replace('{PWD}', dirname($file), $section_text['INI']);
1608 $section_text['INI'] = str_replace('{TMP}', sys_get_temp_dir(), $section_text['INI']);
1609 settings2array(preg_split( "/[\n\r]+/", $section_text['INI']), $ini_settings);
1620 if (array_key_exists('SKIPIF', $section_text)) {
1622 if (trim($section_text['SKIPIF'])) {
1623 show_file_block('skip', $section_text['SKIPIF']);
1624 save_text($test_skipif, $section_text['SKIPIF'], $temp_skipif);
1678 $section_text['XFAIL'] = trim(substr(ltrim($output), 5));
1684 && ( array_key_exists("GZIP_POST", $section_text)
1685 || array_key_exists("DEFLATE_POST", $section_text))
1693 if (@count($section_text['REDIRECTTEST']) == 1) {
1696 $IN_REDIRECT = eval($section_text['REDIRECTTEST']);
1699 $IN_REDIRECT['prefix'] = trim($section_text['TEST']);
1747 if (is_array($org_file) || @count($section_text['REDIRECTTEST']) == 1) {
1769 if (isset($section_text['FILE'])) {
1770 show_file_block('php', $section_text['FILE'], 'TEST');
1771 save_text($test_file, $section_text['FILE'], $temp_file);
1776 if (array_key_exists('GET', $section_text)) {
1777 $query_string = trim($section_text['GET']);
1793 if (array_key_exists('COOKIE', $section_text)) {
1794 $env['HTTP_COOKIE'] = trim($section_text['COOKIE']);
1799 $args = isset($section_text['ARGS']) ? ' -- ' . $section_text['ARGS'] : '';
1801 if (array_key_exists('POST_RAW', $section_text) && !empty($section_text['POST_RAW'])) {
1803 $post = trim($section_text['POST_RAW']);
1835 } elseif (array_key_exists('PUT', $section_text) && !empty($section_text['PUT'])) {
1837 $post = trim($section_text['PUT']);
1869 } else if (array_key_exists('POST', $section_text) && !empty($section_text['POST'])) {
1871 $post = trim($section_text['POST']);
1886 } else if (array_key_exists('GZIP_POST', $section_text) && !empty($section_text['GZIP_POST'])) {
1888 $post = trim($section_text['GZIP_POST']);
1901 …} else if (array_key_exists('DEFLATE_POST', $section_text) && !empty($section_text['DEFLATE_POST']…
1902 $post = trim($section_text['DEFLATE_POST']);
1962 …$out = system_with_timeout($cmd, $env, isset($section_text['STDIN']) ? $section_text['STDIN'] : nu…
1976 if (array_key_exists('CLEAN', $section_text) && (!$no_clean || $cfg['keep']['clean'])) {
1978 if (trim($section_text['CLEAN'])) {
1979 show_file_block('clean', $section_text['CLEAN']);
1980 save_text($test_clean, trim($section_text['CLEAN']), $temp_clean);
2028 if (isset($section_text['EXPECTHEADERS'])) {
2031 $lines = preg_split("/[\n\r]+/", $section_text['EXPECTHEADERS']);
2062 if (isset($section_text['EXPECTF']) || isset($section_text['EXPECTREGEX'])) {
2064 if (isset($section_text['EXPECTF'])) {
2065 $wanted = trim($section_text['EXPECTF']);
2067 $wanted = trim($section_text['EXPECTREGEX']);
2073 if (isset($section_text['EXPECTF'])) {
2149 if (isset($section_text['XFAIL'] )) {
2162 $wanted = trim($section_text['EXPECT']);
2175 if (isset($section_text['XFAIL'] )) {
2213 if (isset($section_text['XFAIL'])) {
2215 $info = ' XFAIL REASON: ' . rtrim($section_text['XFAIL']);