Lines Matching refs:conf
426 public $conf = array(); variable in testHarness
480 if ($this->conf['TEST_PHP_SRCDIR']) {
481 @chdir($this->conf['TEST_PHP_SRCDIR']);
485 if (!$this->conf['TEST_PHP_SRCDIR'])
486 $this->conf['TEST_PHP_SRCDIR'] = $this->cwd;
487 if (!$this->conf['TEST_BASE_PATH'] && $this->conf['TEST_PHP_SRCDIR'])
488 $this->conf['TEST_BASE_PATH'] = $this->conf['TEST_PHP_SRCDIR'];
490 $this->conf['TEST_PHP_SRCDIR'] = str_replace('/','\\',$this->conf['TEST_PHP_SRCDIR']);
491 $this->conf['TEST_BASE_PATH'] = str_replace('/','\\',$this->conf['TEST_BASE_PATH']);
494 if (!$this->conf['TEST_WEB'] && !is_executable($this->conf['TEST_PHP_EXECUTABLE'])) {
496 $this->conf['TEST_PHP_EXECUTABLE']);
515 if ($this->conf['TEST_CONTEXT_INFO']) return;
557 if ($this->conf['TEST_WEB']) {
558 $pi = '/testscript.' . $this->conf['TEST_WEB_EXT'];
559 if (!$cwd) $cwd = $this->conf['TEST_BASE_PATH'];
561 $pi = substr($cwd,strlen($this->conf['TEST_BASE_PATH'])) . $pi;
562 $url = $this->conf['TEST_WEB_BASE_URL'] . $pi;
578 …return executeCode($this->conf['TEST_PHP_EXECUTABLE'],$this->ini_overwrites, $script,$removeheader…
630 $conf = NULL;
642 if (!isset($conf)) {
646 $this->conf = array_merge($this->conf,$conf);
649 $this->conf['TEST_PHP_ERROR_STYLE'] = strtoupper($value);
656 $this->conf[$this->xargs[$opt][0]] = $value;
658 $this->conf[$this->xargs[$opt][0]] = $value ?? 1;
669 $this->env = array_merge($this->env,$this->conf);
670 if (!$this->conf['TEST_WEB'] && !$this->conf['TEST_PHP_EXECUTABLE']) {
687 $this->conf[$name] = $this->env[$name];
696 $this->conf[$arg_info[0]]=$arg_info[2];
706 if (@$this->conf['TEST_PATHS']) {
709 $paths = explode(';',$this->conf['TEST_PATHS']);
711 $paths = explode(':|;',$this->conf['TEST_PATHS']);
766 $conf = '';
767 foreach ($this->conf as $k=>$v) {
768 $conf .= sprintf("%-20.s: %s\n",$k,$v);
772 if (!$this->conf['TEST_WEB'])
774 "PHP : {$this->conf['TEST_PHP_EXECUTABLE']}\n";
778 "Test Harness Configuration:\n$conf\n".
799 if (!$this->conf['TEST_BASE_PATH'] ||
800 $this->conf['TEST_BASE_PATH'] == $this->conf['TEST_PHP_SRCDIR']) return;
801 …$this->writemsg("moving files from {$this->conf['TEST_PHP_SRCDIR']} to {$this->conf['TEST_BASE_PAT…
802 $l = strlen($this->conf['TEST_PHP_SRCDIR']);
806 if (strpos($file,$this->conf['TEST_PHP_SRCDIR'])==0) {
807 $newlocation = $this->conf['TEST_BASE_PATH'].substr($file,$l);
934 if ($failed_test_summary && !$this->conf['NO_PHPTEST_SUMMARY']) {
939 if ($sum_results['FAILED'] && !$this->conf['NO_INTERACTION']) {
1015 $failed_tests_data .= shell_exec($this->conf['TEST_PHP_EXECUTABLE'].' -dhtml_errors=0 -i');
1036 if($this->conf['REPORT_EXIT_STATUS'] and $sum_results['FAILED']) {
1065 if ($this->conf['TEST_WEB'] || $this->test_executable_iscgi) {
1069 $parts = parse_url($this->conf['TEST_WEB_BASE_URL']);
1071 $docroot = $this->conf['TEST_BASE_PATH'];
1073 $this->conf['TEST_DOCUMENT_ROOT']=$docroot;
1074 $this->conf['TEST_BASE_SCRIPT_NAME']=$parts['path'];
1075 …$this->conf['TEST_SERVER_URL']=substr($this->conf['TEST_WEB_BASE_URL'],0,strlen($this->conf['TEST_…
1077 $this->conf['TEST_DOCUMENT_ROOT']='';
1078 $this->conf['TEST_BASE_SCRIPT_NAME']='';
1079 $this->conf['TEST_SERVER_URL']='';
1089 $scriptname = substr($filename,strlen($this->conf['TEST_DOCUMENT_ROOT']));
1170 if ($docgi && !$this->conf['TEST_WEB'] && !$this->test_executable_iscgi) {
1177 if (($docgi || $this->conf['TEST_WEB']) &&
1199 if ($this->conf['TEST_PHP_DETAILED'] > 2)
1222 if ($this->conf['TEST_PHP_DETAILED'])
1228 $shortname = str_replace($this->conf['TEST_BASE_PATH'].'\\', '', $file);
1230 $shortname = str_replace($this->conf['TEST_BASE_PATH'].'/', '', $file);
1233 if ($this->conf['TEST_WEB']) {
1234 $tmp_file = preg_replace('/\.phpt$/','.'.$this->conf['TEST_WEB_EXT'],$file);
1235 …$uri = $this->conf['TEST_BASE_SCRIPT_NAME'].str_replace($this->conf['TEST_BASE_PATH'], '', $tmp_fi…
1248 if (!$this->conf['TEST_WEB']) {
1273 if ($this->conf['TEST_WEB']) {
1282 if (isset($this->conf['timeout'])) $options['timeout'] = $this->conf['timeout'];
1283 if (isset($this->conf['proxy_host'])) $options['proxy_host'] = $this->conf['proxy_host'];
1284 if (isset($this->conf['proxy_port'])) $options['proxy_port'] = $this->conf['proxy_port'];
1285 if (isset($this->conf['proxy_user'])) $options['proxy_user'] = $this->conf['proxy_user'];
1286 if (isset($this->conf['proxy_pass'])) $options['proxy_pass'] = $this->conf['proxy_pass'];
1289 $url = $this->conf['TEST_SERVER_URL'];
1302 if ($this->conf['TEST_PHP_DETAILED'])
1348 if ($this->conf['TEST_PHP_DETAILED'] > 1)
1369 if ($this->conf['TEST_WEB']) {
1378 $out = execute($this->conf['TEST_PHP_EXECUTABLE'],$args,$post,$this->cwd,$env);
1394 if ($this->conf['TEST_PHP_DETAILED'] > 2) {
1487 if (!$failed && $this->conf['TEST_WEB'] && isset($section_text['EXPECTHEADERS'])) {
1536 if ($this->conf['TEST_PHP_DETAILED'])
1540 if (strpos($this->conf['TEST_PHP_LOG_FORMAT'],'E') !== FALSE) {
1546 if (strpos($this->conf['TEST_PHP_LOG_FORMAT'],'O') !== FALSE) {
1552 if (strpos($this->conf['TEST_PHP_LOG_FORMAT'],'D') !== FALSE) {
1558 if (strpos($this->conf['TEST_PHP_LOG_FORMAT'],'L') !== FALSE) {
1565 if (strpos($this->conf['TEST_PHP_LOG_FORMAT'],'C') !== FALSE) {
1579 switch ($this->conf['TEST_PHP_ERROR_STYLE']) {