Lines Matching refs:section_text

1281 	$section_text = array('TEST' => '');
1315 if (isset($section_text[$section]) && $section_text[$section]) {
1332 $section_text[$section] = '';
1340 $section_text[$section] .= $line;
1352 if (isset($section_text['REDIRECTTEST'])) {
1360 …if (!isset($section_text['PHPDBG']) && @count($section_text['FILE']) + @count($section_text['FILEE…
1364 if (isset($section_text['FILEEOF'])) {
1365 $section_text['FILE'] = preg_replace("/[\r\n]+$/", '', $section_text['FILEEOF']);
1366 unset($section_text['FILEEOF']);
1372 if (isset($section_text[$key])) {
1374 $section_text[$key] = dirname($file) . '/' . trim(str_replace('..', '', $section_text[$key]));
1376 if (file_exists($section_text[$key])) {
1377 $section_text[$prefix] = file_get_contents($section_text[$key], FILE_BINARY);
1378 unset($section_text[$key]);
1380 …$bork_info = "could not load --" . $key . "-- " . dirname($file) . '/' . trim($section_text[$key]);
1385 …if ((@count($section_text['EXPECT']) + @count($section_text['EXPECTF']) + @count($section_text['EX…
1409 if (isset($section_text['CAPTURE_STDIO'])) {
1410 $captureStdIn = stripos($section_text['CAPTURE_STDIO'], 'STDIN') !== false;
1411 $captureStdOut = stripos($section_text['CAPTURE_STDIO'], 'STDOUT') !== false;
1412 $captureStdErr = stripos($section_text['CAPTURE_STDIO'], 'STDERR') !== false;
1424 $tested = trim($section_text['TEST']);
1427section_text) || !empty($section_text['GET']) || !empty($section_text['POST']) || !empty($section_…
1451 if (array_key_exists('PHPDBG', $section_text)) {
1452 if (!isset($section_text['STDIN'])) {
1453 $section_text['STDIN'] = $section_text['PHPDBG']."\n";
1508 if (isset($section_text['FILE'])) {
1509 save_text($copy_file, $section_text['FILE']);
1526 $tested = $IN_REDIRECT['prefix'] . ' ' . trim($section_text['TEST']);
1555 if (!empty($section_text['ENV'])) {
1557 foreach(explode("\n", trim($section_text['ENV'])) as $e) {
1570 if (array_key_exists('EXTENSIONS', $section_text)) {
1575 $extensions = preg_split("/[\n\r]+/", trim($section_text['EXTENSIONS']));
1595 if (array_key_exists('INI', $section_text)) {
1596 $section_text['INI'] = str_replace('{PWD}', dirname($file), $section_text['INI']);
1597 $section_text['INI'] = str_replace('{TMP}', sys_get_temp_dir(), $section_text['INI']);
1598 settings2array(preg_split( "/[\n\r]+/", $section_text['INI']), $ini_settings);
1609 if (array_key_exists('SKIPIF', $section_text)) {
1611 if (trim($section_text['SKIPIF'])) {
1612 show_file_block('skip', $section_text['SKIPIF']);
1613 save_text($test_skipif, $section_text['SKIPIF'], $temp_skipif);
1667 $section_text['XFAIL'] = trim(substr(ltrim($output), 5));
1673 && ( array_key_exists("GZIP_POST", $section_text)
1674 || array_key_exists("DEFLATE_POST", $section_text))
1682 if (isset($section_text['REDIRECTTEST'])) {
1685 $IN_REDIRECT = eval($section_text['REDIRECTTEST']);
1688 $IN_REDIRECT['prefix'] = trim($section_text['TEST']);
1736 if (is_array($org_file) || @count($section_text['REDIRECTTEST']) == 1) {
1758 if (isset($section_text['FILE'])) {
1759 show_file_block('php', $section_text['FILE'], 'TEST');
1760 save_text($test_file, $section_text['FILE'], $temp_file);
1765 if (array_key_exists('GET', $section_text)) {
1766 $query_string = trim($section_text['GET']);
1782 if (array_key_exists('COOKIE', $section_text)) {
1783 $env['HTTP_COOKIE'] = trim($section_text['COOKIE']);
1788 $args = isset($section_text['ARGS']) ? ' -- ' . $section_text['ARGS'] : '';
1790 if (array_key_exists('POST_RAW', $section_text) && !empty($section_text['POST_RAW'])) {
1792 $post = trim($section_text['POST_RAW']);
1824 } elseif (array_key_exists('PUT', $section_text) && !empty($section_text['PUT'])) {
1826 $post = trim($section_text['PUT']);
1858 } else if (array_key_exists('POST', $section_text) && !empty($section_text['POST'])) {
1860 $post = trim($section_text['POST']);
1875 } else if (array_key_exists('GZIP_POST', $section_text) && !empty($section_text['GZIP_POST'])) {
1877 $post = trim($section_text['GZIP_POST']);
1890 …} else if (array_key_exists('DEFLATE_POST', $section_text) && !empty($section_text['DEFLATE_POST']…
1891 $post = trim($section_text['DEFLATE_POST']);
1938 …$out = system_with_timeout($cmd, $env, $section_text['STDIN'] ?? null, $captureStdIn, $captureStdO…
1953 if (array_key_exists('CLEAN', $section_text) && (!$no_clean || $cfg['keep']['clean'])) {
1955 if (trim($section_text['CLEAN'])) {
1956 show_file_block('clean', $section_text['CLEAN']);
1957 save_text($test_clean, trim($section_text['CLEAN']), $temp_clean);
2005 if (isset($section_text['EXPECTHEADERS'])) {
2008 $lines = preg_split("/[\n\r]+/", $section_text['EXPECTHEADERS']);
2039 if (isset($section_text['EXPECTF']) || isset($section_text['EXPECTREGEX'])) {
2041 if (isset($section_text['EXPECTF'])) {
2042 $wanted = trim($section_text['EXPECTF']);
2044 $wanted = trim($section_text['EXPECTREGEX']);
2050 if (isset($section_text['EXPECTF'])) {
2106 if (isset($section_text['XFAIL'] )) {
2119 $wanted = trim($section_text['EXPECT']);
2132 if (isset($section_text['XFAIL'] )) {
2170 if (isset($section_text['XFAIL'])) {
2172 $info = ' XFAIL REASON: ' . rtrim($section_text['XFAIL']);