Lines Matching refs:conf

434 	public $conf = array();  variable in testHarness
490 if ($this->conf['TEST_PHP_SRCDIR']) {
491 @chdir($this->conf['TEST_PHP_SRCDIR']);
495 if (!$this->conf['TEST_PHP_SRCDIR'])
496 $this->conf['TEST_PHP_SRCDIR'] = $this->cwd;
497 if (!$this->conf['TEST_BASE_PATH'] && $this->conf['TEST_PHP_SRCDIR'])
498 $this->conf['TEST_BASE_PATH'] = $this->conf['TEST_PHP_SRCDIR'];
500 $this->conf['TEST_PHP_SRCDIR'] = str_replace('/','\\',$this->conf['TEST_PHP_SRCDIR']);
501 $this->conf['TEST_BASE_PATH'] = str_replace('/','\\',$this->conf['TEST_BASE_PATH']);
504 if (!$this->conf['TEST_WEB'] && !is_executable($this->conf['TEST_PHP_EXECUTABLE'])) {
506 $this->conf['TEST_PHP_EXECUTABLE']);
525 if ($this->conf['TEST_CONTEXT_INFO']) return;
567 if ($this->conf['TEST_WEB']) {
568 $pi = '/testscript.' . $this->conf['TEST_WEB_EXT'];
569 if (!$cwd) $cwd = $this->conf['TEST_BASE_PATH'];
571 $pi = substr($cwd,strlen($this->conf['TEST_BASE_PATH'])) . $pi;
572 $url = $this->conf['TEST_WEB_BASE_URL'] . $pi;
588 …return executeCode($this->conf['TEST_PHP_EXECUTABLE'],$this->ini_overwrites, $script,$removeheader…
640 $conf = NULL;
652 if (!isset($conf)) {
656 $this->conf = array_merge($this->conf,$conf);
659 $this->conf['TEST_PHP_ERROR_STYLE'] = strtoupper($value);
666 $this->conf[$this->xargs[$opt][0]] = $value;
668 $this->conf[$this->xargs[$opt][0]] = isset($value)?$value:1;
679 $this->env = array_merge($this->env,$this->conf);
680 if (!$this->conf['TEST_WEB'] && !$this->conf['TEST_PHP_EXECUTABLE']) {
697 $this->conf[$name] = $this->env[$name];
706 $this->conf[$arg_info[0]]=$arg_info[2];
716 if (@$this->conf['TEST_PATHS']) {
719 $paths = explode(';',$this->conf['TEST_PATHS']);
721 $paths = explode(':|;',$this->conf['TEST_PATHS']);
779 $conf = '';
780 foreach ($this->conf as $k=>$v) {
781 $conf .= sprintf("%-20.s: %s\n",$k,$v);
785 if (!$this->conf['TEST_WEB'])
787 "PHP : {$this->conf['TEST_PHP_EXECUTABLE']}\n";
791 "Test Harness Configuration:\n$conf\n".
812 if (!$this->conf['TEST_BASE_PATH'] ||
813 $this->conf['TEST_BASE_PATH'] == $this->conf['TEST_PHP_SRCDIR']) return;
814 …$this->writemsg("moving files from {$this->conf['TEST_PHP_SRCDIR']} to {$this->conf['TEST_BASE_PAT…
815 $l = strlen($this->conf['TEST_PHP_SRCDIR']);
819 if (strpos($file,$this->conf['TEST_PHP_SRCDIR'])==0) {
820 $newlocation = $this->conf['TEST_BASE_PATH'].substr($file,$l);
947 if ($failed_test_summary && !$this->conf['NO_PHPTEST_SUMMARY']) {
952 if ($sum_results['FAILED'] && !$this->conf['NO_INTERACTION']) {
1028 $failed_tests_data .= shell_exec($this->conf['TEST_PHP_EXECUTABLE'].' -dhtml_errors=0 -i');
1049 if($this->conf['REPORT_EXIT_STATUS'] and $sum_results['FAILED']) {
1078 if ($this->conf['TEST_WEB'] || $this->test_executable_iscgi) {
1082 $parts = parse_url($this->conf['TEST_WEB_BASE_URL']);
1084 $docroot = $this->conf['TEST_BASE_PATH'];
1086 $this->conf['TEST_DOCUMENT_ROOT']=$docroot;
1087 $this->conf['TEST_BASE_SCRIPT_NAME']=$parts['path'];
1088 …$this->conf['TEST_SERVER_URL']=substr($this->conf['TEST_WEB_BASE_URL'],0,strlen($this->conf['TEST_…
1090 $this->conf['TEST_DOCUMENT_ROOT']='';
1091 $this->conf['TEST_BASE_SCRIPT_NAME']='';
1092 $this->conf['TEST_SERVER_URL']='';
1102 $scriptname = substr($filename,strlen($this->conf['TEST_DOCUMENT_ROOT']));
1183 if ($docgi && !$this->conf['TEST_WEB'] && !$this->test_executable_iscgi) {
1190 if (($docgi || $this->conf['TEST_WEB']) &&
1212 if ($this->conf['TEST_PHP_DETAILED'] > 2)
1235 if ($this->conf['TEST_PHP_DETAILED'])
1241 $shortname = str_replace($this->conf['TEST_BASE_PATH'].'\\', '', $file);
1243 $shortname = str_replace($this->conf['TEST_BASE_PATH'].'/', '', $file);
1246 if ($this->conf['TEST_WEB']) {
1247 $tmp_file = preg_replace('/\.phpt$/','.'.$this->conf['TEST_WEB_EXT'],$file);
1248 …$uri = $this->conf['TEST_BASE_SCRIPT_NAME'].str_replace($this->conf['TEST_BASE_PATH'], '', $tmp_fi…
1261 if (!$this->conf['TEST_WEB']) {
1286 if ($this->conf['TEST_WEB']) {
1295 if (isset($this->conf['timeout'])) $options['timeout'] = $this->conf['timeout'];
1296 if (isset($this->conf['proxy_host'])) $options['proxy_host'] = $this->conf['proxy_host'];
1297 if (isset($this->conf['proxy_port'])) $options['proxy_port'] = $this->conf['proxy_port'];
1298 if (isset($this->conf['proxy_user'])) $options['proxy_user'] = $this->conf['proxy_user'];
1299 if (isset($this->conf['proxy_pass'])) $options['proxy_pass'] = $this->conf['proxy_pass'];
1302 $url = $this->conf['TEST_SERVER_URL'];
1315 if ($this->conf['TEST_PHP_DETAILED'])
1361 if ($this->conf['TEST_PHP_DETAILED'] > 1)
1382 if ($this->conf['TEST_WEB']) {
1391 $out = execute($this->conf['TEST_PHP_EXECUTABLE'],$args,$post,$this->cwd,$env);
1407 if ($this->conf['TEST_PHP_DETAILED'] > 2) {
1500 if (!$failed && $this->conf['TEST_WEB'] && isset($section_text['EXPECTHEADERS'])) {
1549 if ($this->conf['TEST_PHP_DETAILED'])
1553 if (strpos($this->conf['TEST_PHP_LOG_FORMAT'],'E') !== FALSE) {
1559 if (strpos($this->conf['TEST_PHP_LOG_FORMAT'],'O') !== FALSE) {
1565 if (strpos($this->conf['TEST_PHP_LOG_FORMAT'],'D') !== FALSE) {
1571 if (strpos($this->conf['TEST_PHP_LOG_FORMAT'],'L') !== FALSE) {
1578 if (strpos($this->conf['TEST_PHP_LOG_FORMAT'],'C') !== FALSE) {
1592 switch ($this->conf['TEST_PHP_ERROR_STYLE']) {