Lines Matching refs:section_text
1189 $section_text = array('TEST' => '');
1228 if (isset($section_text[$section])) {
1233 $section_text[$section] = '';
1241 $section_text[$section] .= $line;
1253 if (@count($section_text['REDIRECTTEST']) == 1) {
1264 …if (@count($section_text['FILE']) + @count($section_text['FILEEOF']) + @count($section_text['FILE_…
1269 if (@count($section_text['FILEEOF']) == 1) {
1270 $section_text['FILE'] = preg_replace("/[\r\n]+$/", '', $section_text['FILEEOF']);
1271 unset($section_text['FILEEOF']);
1274 if (@count($section_text['FILE_EXTERNAL']) == 1) {
1276 …$section_text['FILE_EXTERNAL'] = dirname($file) . '/' . trim(str_replace('..', '', $section_text['…
1278 if (file_exists($section_text['FILE_EXTERNAL'])) {
1279 $section_text['FILE'] = file_get_contents($section_text['FILE_EXTERNAL'], FILE_BINARY);
1280 unset($section_text['FILE_EXTERNAL']);
1282 …$bork_info = "could not load --FILE_EXTERNAL-- " . dirname($file) . '/' . trim($section_text['FILE…
1287 …if ((@count($section_text['EXPECT']) + @count($section_text['EXPECTF']) + @count($section_text['EX…
1312 $tested = trim($section_text['TEST']);
1315 …section_text['GET']) || !empty($section_text['POST']) || !empty($section_text['GZIP_POST']) || !em…
1380 if (isset($section_text['FILE'])) {
1381 save_text($copy_file, $section_text['FILE']);
1398 $tested = $IN_REDIRECT['prefix'] . ' ' . trim($section_text['TEST']);
1427 if (!empty($section_text['ENV'])) {
1429 foreach(explode("\n", trim($section_text['ENV'])) as $e) {
1446 if (array_key_exists('INI', $section_text)) {
1447 if (strpos($section_text['INI'], '{PWD}') !== false) {
1448 $section_text['INI'] = str_replace('{PWD}', dirname($file), $section_text['INI']);
1450 settings2array(preg_split( "/[\n\r]+/", $section_text['INI']), $ini_settings);
1454 if (array_key_exists('EXTENSIONS', $section_text)) {
1456 $extensions = preg_split("/[\n\r]+/", trim($section_text['EXTENSIONS']));
1471 if (array_key_exists('SKIPIF', $section_text)) {
1473 if (trim($section_text['SKIPIF'])) {
1474 show_file_block('skip', $section_text['SKIPIF']);
1475 save_text($test_skipif, $section_text['SKIPIF'], $temp_skipif);
1533 if (@count($section_text['REDIRECTTEST']) == 1) {
1536 $IN_REDIRECT = eval($section_text['REDIRECTTEST']);
1539 $IN_REDIRECT['prefix'] = trim($section_text['TEST']);
1587 if (is_array($org_file) || @count($section_text['REDIRECTTEST']) == 1) {
1609 show_file_block('php', $section_text['FILE'], 'TEST');
1610 save_text($test_file, $section_text['FILE'], $temp_file);
1612 if (array_key_exists('GET', $section_text)) {
1613 $query_string = trim($section_text['GET']);
1623 if (array_key_exists('COOKIE', $section_text)) {
1624 $env['HTTP_COOKIE'] = trim($section_text['COOKIE']);
1629 $args = isset($section_text['ARGS']) ? ' -- ' . $section_text['ARGS'] : '';
1631 if (array_key_exists('POST_RAW', $section_text) && !empty($section_text['POST_RAW'])) {
1633 $post = trim($section_text['POST_RAW']);
1665 } elseif (array_key_exists('PUT', $section_text) && !empty($section_text['PUT'])) {
1667 $post = trim($section_text['PUT']);
1699 } else if (array_key_exists('POST', $section_text) && !empty($section_text['POST'])) {
1701 $post = trim($section_text['POST']);
1711 } else if (array_key_exists('GZIP_POST', $section_text) && !empty($section_text['GZIP_POST'])) {
1713 $post = trim($section_text['GZIP_POST']);
1726 …} else if (array_key_exists('DEFLATE_POST', $section_text) && !empty($section_text['DEFLATE_POST']…
1727 $post = trim($section_text['DEFLATE_POST']);
1779 …$out = system_with_timeout($cmd, $env, isset($section_text['STDIN']) ? $section_text['STDIN'] : nu…
1783 if (array_key_exists('CLEAN', $section_text) && (!$no_clean || $cfg['keep']['clean'])) {
1785 if (trim($section_text['CLEAN'])) {
1786 show_file_block('clean', $section_text['CLEAN']);
1787 save_text($test_clean, trim($section_text['CLEAN']), $temp_clean);
1838 if (isset($section_text['EXPECTHEADERS'])) {
1841 $lines = preg_split("/[\n\r]+/", $section_text['EXPECTHEADERS']);
1875 if (isset($section_text['EXPECTF']) || isset($section_text['EXPECTREGEX'])) {
1877 if (isset($section_text['EXPECTF'])) {
1878 $wanted = trim($section_text['EXPECTF']);
1880 $wanted = trim($section_text['EXPECTREGEX']);
1886 if (isset($section_text['EXPECTF'])) {
1965 if (isset($section_text['XFAIL'] )) {
1978 $wanted = trim($section_text['EXPECT']);
1995 if (isset($section_text['XFAIL'] )) {
2029 if (isset($section_text['XFAIL'])) {
2031 $info = ' XFAIL REASON: ' . rtrim($section_text['XFAIL']);