Lines Matching refs:conf

434 	public $conf = array();  variable in testHarness
489 if ($this->conf['TEST_PHP_SRCDIR']) {
490 @chdir($this->conf['TEST_PHP_SRCDIR']);
494 if (!$this->conf['TEST_PHP_SRCDIR'])
495 $this->conf['TEST_PHP_SRCDIR'] = $this->cwd;
496 if (!$this->conf['TEST_BASE_PATH'] && $this->conf['TEST_PHP_SRCDIR'])
497 $this->conf['TEST_BASE_PATH'] = $this->conf['TEST_PHP_SRCDIR'];
499 $this->conf['TEST_PHP_SRCDIR'] = str_replace('/','\\',$this->conf['TEST_PHP_SRCDIR']);
500 $this->conf['TEST_BASE_PATH'] = str_replace('/','\\',$this->conf['TEST_BASE_PATH']);
503 if (!$this->conf['TEST_WEB'] && !is_executable($this->conf['TEST_PHP_EXECUTABLE'])) {
505 $this->conf['TEST_PHP_EXECUTABLE']);
524 if ($this->conf['TEST_CONTEXT_INFO']) return;
566 if ($this->conf['TEST_WEB']) {
567 $pi = '/testscript.' . $this->conf['TEST_WEB_EXT'];
568 if (!$cwd) $cwd = $this->conf['TEST_BASE_PATH'];
570 $pi = substr($cwd,strlen($this->conf['TEST_BASE_PATH'])) . $pi;
571 $url = $this->conf['TEST_WEB_BASE_URL'] . $pi;
587 …return executeCode($this->conf['TEST_PHP_EXECUTABLE'],$this->ini_overwrites, $script,$removeheader…
639 $conf = NULL;
651 if (!isset($conf)) {
655 $this->conf = array_merge($this->conf,$conf);
658 $this->conf['TEST_PHP_ERROR_STYLE'] = strtoupper($value);
665 $this->conf[$this->xargs[$opt][0]] = $value;
667 $this->conf[$this->xargs[$opt][0]] = isset($value)?$value:1;
678 $this->env = array_merge($this->env,$this->conf);
679 if (!$this->conf['TEST_WEB'] && !$this->conf['TEST_PHP_EXECUTABLE']) {
696 $this->conf[$name] = $this->env[$name];
705 $this->conf[$arg_info[0]]=$arg_info[2];
715 if (@$this->conf['TEST_PATHS']) {
718 $paths = explode(';',$this->conf['TEST_PATHS']);
720 $paths = explode(':|;',$this->conf['TEST_PATHS']);
778 $conf = '';
779 foreach ($this->conf as $k=>$v) {
780 $conf .= sprintf("%-20.s: %s\n",$k,$v);
784 if (!$this->conf['TEST_WEB'])
786 "PHP : {$this->conf['TEST_PHP_EXECUTABLE']}\n";
790 "Test Harness Configuration:\n$conf\n".
811 if (!$this->conf['TEST_BASE_PATH'] ||
812 $this->conf['TEST_BASE_PATH'] == $this->conf['TEST_PHP_SRCDIR']) return;
813 …$this->writemsg("moving files from {$this->conf['TEST_PHP_SRCDIR']} to {$this->conf['TEST_BASE_PAT…
814 $l = strlen($this->conf['TEST_PHP_SRCDIR']);
818 if (strpos($file,$this->conf['TEST_PHP_SRCDIR'])==0) {
819 $newlocation = $this->conf['TEST_BASE_PATH'].substr($file,$l);
946 if ($failed_test_summary && !$this->conf['NO_PHPTEST_SUMMARY']) {
951 if ($sum_results['FAILED'] && !$this->conf['NO_INTERACTION']) {
1027 $failed_tests_data .= shell_exec($this->conf['TEST_PHP_EXECUTABLE'].' -dhtml_errors=0 -i');
1048 if($this->conf['REPORT_EXIT_STATUS'] and $sum_results['FAILED']) {
1077 if ($this->conf['TEST_WEB'] || $this->test_executable_iscgi) {
1081 $parts = parse_url($this->conf['TEST_WEB_BASE_URL']);
1083 $docroot = $this->conf['TEST_BASE_PATH'];
1085 $this->conf['TEST_DOCUMENT_ROOT']=$docroot;
1086 $this->conf['TEST_BASE_SCRIPT_NAME']=$parts['path'];
1087 …$this->conf['TEST_SERVER_URL']=substr($this->conf['TEST_WEB_BASE_URL'],0,strlen($this->conf['TEST_…
1089 $this->conf['TEST_DOCUMENT_ROOT']='';
1090 $this->conf['TEST_BASE_SCRIPT_NAME']='';
1091 $this->conf['TEST_SERVER_URL']='';
1101 $scriptname = substr($filename,strlen($this->conf['TEST_DOCUMENT_ROOT']));
1182 if ($docgi && !$this->conf['TEST_WEB'] && !$this->test_executable_iscgi) {
1189 if (($docgi || $this->conf['TEST_WEB']) &&
1211 if ($this->conf['TEST_PHP_DETAILED'] > 2)
1234 if ($this->conf['TEST_PHP_DETAILED'])
1240 $shortname = str_replace($this->conf['TEST_BASE_PATH'].'\\', '', $file);
1242 $shortname = str_replace($this->conf['TEST_BASE_PATH'].'/', '', $file);
1245 if ($this->conf['TEST_WEB']) {
1246 $tmp_file = preg_replace('/\.phpt$/','.'.$this->conf['TEST_WEB_EXT'],$file);
1247 …$uri = $this->conf['TEST_BASE_SCRIPT_NAME'].str_replace($this->conf['TEST_BASE_PATH'], '', $tmp_fi…
1260 if (!$this->conf['TEST_WEB']) {
1285 if ($this->conf['TEST_WEB']) {
1294 if (isset($this->conf['timeout'])) $options['timeout'] = $this->conf['timeout'];
1295 if (isset($this->conf['proxy_host'])) $options['proxy_host'] = $this->conf['proxy_host'];
1296 if (isset($this->conf['proxy_port'])) $options['proxy_port'] = $this->conf['proxy_port'];
1297 if (isset($this->conf['proxy_user'])) $options['proxy_user'] = $this->conf['proxy_user'];
1298 if (isset($this->conf['proxy_pass'])) $options['proxy_pass'] = $this->conf['proxy_pass'];
1301 $url = $this->conf['TEST_SERVER_URL'];
1314 if ($this->conf['TEST_PHP_DETAILED'])
1360 if ($this->conf['TEST_PHP_DETAILED'] > 1)
1381 if ($this->conf['TEST_WEB']) {
1390 $out = execute($this->conf['TEST_PHP_EXECUTABLE'],$args,$post,$this->cwd,$env);
1406 if ($this->conf['TEST_PHP_DETAILED'] > 2) {
1499 if (!$failed && $this->conf['TEST_WEB'] && isset($section_text['EXPECTHEADERS'])) {
1548 if ($this->conf['TEST_PHP_DETAILED'])
1552 if (strpos($this->conf['TEST_PHP_LOG_FORMAT'],'E') !== FALSE) {
1558 if (strpos($this->conf['TEST_PHP_LOG_FORMAT'],'O') !== FALSE) {
1564 if (strpos($this->conf['TEST_PHP_LOG_FORMAT'],'D') !== FALSE) {
1570 if (strpos($this->conf['TEST_PHP_LOG_FORMAT'],'L') !== FALSE) {
1577 if (strpos($this->conf['TEST_PHP_LOG_FORMAT'],'C') !== FALSE) {
1591 switch ($this->conf['TEST_PHP_ERROR_STYLE']) {