Lines Matching refs:section_text
1207 $section_text = array('TEST' => '');
1246 if (isset($section_text[$section])) {
1251 $section_text[$section] = '';
1259 $section_text[$section] .= $line;
1271 if (@count($section_text['REDIRECTTEST']) == 1) {
1282 …if (@count($section_text['FILE']) + @count($section_text['FILEEOF']) + @count($section_text['FILE_…
1287 if (@count($section_text['FILEEOF']) == 1) {
1288 $section_text['FILE'] = preg_replace("/[\r\n]+$/", '', $section_text['FILEEOF']);
1289 unset($section_text['FILEEOF']);
1292 if (@count($section_text['FILE_EXTERNAL']) == 1) {
1294 …$section_text['FILE_EXTERNAL'] = dirname($file) . '/' . trim(str_replace('..', '', $section_text['…
1296 if (file_exists($section_text['FILE_EXTERNAL'])) {
1297 $section_text['FILE'] = file_get_contents($section_text['FILE_EXTERNAL'], FILE_BINARY);
1298 unset($section_text['FILE_EXTERNAL']);
1300 …$bork_info = "could not load --FILE_EXTERNAL-- " . dirname($file) . '/' . trim($section_text['FILE…
1305 …if ((@count($section_text['EXPECT']) + @count($section_text['EXPECTF']) + @count($section_text['EX…
1330 $tested = trim($section_text['TEST']);
1333 …section_text['GET']) || !empty($section_text['POST']) || !empty($section_text['GZIP_POST']) || !em…
1399 if (isset($section_text['FILE'])) {
1400 save_text($copy_file, $section_text['FILE']);
1417 $tested = $IN_REDIRECT['prefix'] . ' ' . trim($section_text['TEST']);
1446 if (!empty($section_text['ENV'])) {
1448 foreach(explode("\n", trim($section_text['ENV'])) as $e) {
1465 if (array_key_exists('INI', $section_text)) {
1466 if (strpos($section_text['INI'], '{PWD}') !== false) {
1467 $section_text['INI'] = str_replace('{PWD}', dirname($file), $section_text['INI']);
1469 settings2array(preg_split( "/[\n\r]+/", $section_text['INI']), $ini_settings);
1473 if (array_key_exists('EXTENSIONS', $section_text)) {
1475 $extensions = preg_split("/[\n\r]+/", trim($section_text['EXTENSIONS']));
1490 if (array_key_exists('SKIPIF', $section_text)) {
1492 if (trim($section_text['SKIPIF'])) {
1493 show_file_block('skip', $section_text['SKIPIF']);
1494 save_text($test_skipif, $section_text['SKIPIF'], $temp_skipif);
1553 && ( array_key_exists("GZIP_POST", $section_text)
1554 || array_key_exists("DEFLATE_POST", $section_text))
1562 if (@count($section_text['REDIRECTTEST']) == 1) {
1565 $IN_REDIRECT = eval($section_text['REDIRECTTEST']);
1568 $IN_REDIRECT['prefix'] = trim($section_text['TEST']);
1616 if (is_array($org_file) || @count($section_text['REDIRECTTEST']) == 1) {
1638 show_file_block('php', $section_text['FILE'], 'TEST');
1639 save_text($test_file, $section_text['FILE'], $temp_file);
1641 if (array_key_exists('GET', $section_text)) {
1642 $query_string = trim($section_text['GET']);
1652 if (array_key_exists('COOKIE', $section_text)) {
1653 $env['HTTP_COOKIE'] = trim($section_text['COOKIE']);
1658 $args = isset($section_text['ARGS']) ? ' -- ' . $section_text['ARGS'] : '';
1660 if (array_key_exists('POST_RAW', $section_text) && !empty($section_text['POST_RAW'])) {
1662 $post = trim($section_text['POST_RAW']);
1694 } elseif (array_key_exists('PUT', $section_text) && !empty($section_text['PUT'])) {
1696 $post = trim($section_text['PUT']);
1728 } else if (array_key_exists('POST', $section_text) && !empty($section_text['POST'])) {
1730 $post = trim($section_text['POST']);
1740 } else if (array_key_exists('GZIP_POST', $section_text) && !empty($section_text['GZIP_POST'])) {
1742 $post = trim($section_text['GZIP_POST']);
1755 …} else if (array_key_exists('DEFLATE_POST', $section_text) && !empty($section_text['DEFLATE_POST']…
1756 $post = trim($section_text['DEFLATE_POST']);
1808 …$out = system_with_timeout($cmd, $env, isset($section_text['STDIN']) ? $section_text['STDIN'] : nu…
1812 if (array_key_exists('CLEAN', $section_text) && (!$no_clean || $cfg['keep']['clean'])) {
1814 if (trim($section_text['CLEAN'])) {
1815 show_file_block('clean', $section_text['CLEAN']);
1816 save_text($test_clean, trim($section_text['CLEAN']), $temp_clean);
1867 if (isset($section_text['EXPECTHEADERS'])) {
1870 $lines = preg_split("/[\n\r]+/", $section_text['EXPECTHEADERS']);
1904 if (isset($section_text['EXPECTF']) || isset($section_text['EXPECTREGEX'])) {
1906 if (isset($section_text['EXPECTF'])) {
1907 $wanted = trim($section_text['EXPECTF']);
1909 $wanted = trim($section_text['EXPECTREGEX']);
1915 if (isset($section_text['EXPECTF'])) {
1994 if (isset($section_text['XFAIL'] )) {
2007 $wanted = trim($section_text['EXPECT']);
2024 if (isset($section_text['XFAIL'] )) {
2058 if (isset($section_text['XFAIL'])) {
2060 $info = ' XFAIL REASON: ' . rtrim($section_text['XFAIL']);