Lines Matching refs:section_text

1259 	$section_text = array('TEST' => '');
1298 if (isset($section_text[$section])) {
1303 $section_text[$section] = '';
1311 $section_text[$section] .= $line;
1323 if (@count($section_text['REDIRECTTEST']) == 1) {
1334 …if (!isset($section_text['PHPDBG']) && @count($section_text['FILE']) + @count($section_text['FILEE…
1339 if (@count($section_text['FILEEOF']) == 1) {
1340 $section_text['FILE'] = preg_replace("/[\r\n]+$/", '', $section_text['FILEEOF']);
1341 unset($section_text['FILEEOF']);
1347 if (@count($section_text[$key]) == 1) {
1349 $section_text[$key] = dirname($file) . '/' . trim(str_replace('..', '', $section_text[$key]));
1351 if (file_exists($section_text[$key])) {
1352 $section_text[$prefix] = file_get_contents($section_text[$key], FILE_BINARY);
1353 unset($section_text[$key]);
1355 …$bork_info = "could not load --" . $key . "-- " . dirname($file) . '/' . trim($section_text[$key]);
1361 …if ((@count($section_text['EXPECT']) + @count($section_text['EXPECTF']) + @count($section_text['EX…
1386 $tested = trim($section_text['TEST']);
1389section_text['GET']) || !empty($section_text['POST']) || !empty($section_text['GZIP_POST']) || !em…
1417 if (array_key_exists('PHPDBG', $section_text)) {
1418 if (!isset($section_text['STDIN'])) {
1419 $section_text['STDIN'] = $section_text['PHPDBG']."\n";
1475 if (isset($section_text['FILE'])) {
1476 save_text($copy_file, $section_text['FILE']);
1493 $tested = $IN_REDIRECT['prefix'] . ' ' . trim($section_text['TEST']);
1522 if (!empty($section_text['ENV'])) {
1524 foreach(explode("\n", trim($section_text['ENV'])) as $e) {
1537 if (array_key_exists('EXTENSIONS', $section_text)) {
1542 $extensions = preg_split("/[\n\r]+/", trim($section_text['EXTENSIONS']));
1562 if (array_key_exists('INI', $section_text)) {
1563 if (strpos($section_text['INI'], '{PWD}') !== false) {
1564 $section_text['INI'] = str_replace('{PWD}', dirname($file), $section_text['INI']);
1566 settings2array(preg_split( "/[\n\r]+/", $section_text['INI']), $ini_settings);
1575 if (array_key_exists('SKIPIF', $section_text)) {
1577 if (trim($section_text['SKIPIF'])) {
1578 show_file_block('skip', $section_text['SKIPIF']);
1579 save_text($test_skipif, $section_text['SKIPIF'], $temp_skipif);
1638 && ( array_key_exists("GZIP_POST", $section_text)
1639 || array_key_exists("DEFLATE_POST", $section_text))
1647 if (@count($section_text['REDIRECTTEST']) == 1) {
1650 $IN_REDIRECT = eval($section_text['REDIRECTTEST']);
1653 $IN_REDIRECT['prefix'] = trim($section_text['TEST']);
1701 if (is_array($org_file) || @count($section_text['REDIRECTTEST']) == 1) {
1723 if (isset($section_text['FILE'])) {
1724 show_file_block('php', $section_text['FILE'], 'TEST');
1725 save_text($test_file, $section_text['FILE'], $temp_file);
1730 if (array_key_exists('GET', $section_text)) {
1731 $query_string = trim($section_text['GET']);
1747 if (array_key_exists('COOKIE', $section_text)) {
1748 $env['HTTP_COOKIE'] = trim($section_text['COOKIE']);
1753 $args = isset($section_text['ARGS']) ? ' -- ' . $section_text['ARGS'] : '';
1755 if (array_key_exists('POST_RAW', $section_text) && !empty($section_text['POST_RAW'])) {
1757 $post = trim($section_text['POST_RAW']);
1789 } elseif (array_key_exists('PUT', $section_text) && !empty($section_text['PUT'])) {
1791 $post = trim($section_text['PUT']);
1823 } else if (array_key_exists('POST', $section_text) && !empty($section_text['POST'])) {
1825 $post = trim($section_text['POST']);
1840 } else if (array_key_exists('GZIP_POST', $section_text) && !empty($section_text['GZIP_POST'])) {
1842 $post = trim($section_text['GZIP_POST']);
1855 …} else if (array_key_exists('DEFLATE_POST', $section_text) && !empty($section_text['DEFLATE_POST']…
1856 $post = trim($section_text['DEFLATE_POST']);
1910 …$out = system_with_timeout($cmd, $env, isset($section_text['STDIN']) ? $section_text['STDIN'] : nu…
1914 if (array_key_exists('CLEAN', $section_text) && (!$no_clean || $cfg['keep']['clean'])) {
1916 if (trim($section_text['CLEAN'])) {
1917 show_file_block('clean', $section_text['CLEAN']);
1918 save_text($test_clean, trim($section_text['CLEAN']), $temp_clean);
1969 if (isset($section_text['EXPECTHEADERS'])) {
1972 $lines = preg_split("/[\n\r]+/", $section_text['EXPECTHEADERS']);
2006 if (isset($section_text['EXPECTF']) || isset($section_text['EXPECTREGEX'])) {
2008 if (isset($section_text['EXPECTF'])) {
2009 $wanted = trim($section_text['EXPECTF']);
2011 $wanted = trim($section_text['EXPECTREGEX']);
2017 if (isset($section_text['EXPECTF'])) {
2096 if (isset($section_text['XFAIL'] )) {
2109 $wanted = trim($section_text['EXPECT']);
2126 if (isset($section_text['XFAIL'] )) {
2160 if (isset($section_text['XFAIL'])) {
2162 $info = ' XFAIL REASON: ' . rtrim($section_text['XFAIL']);