Lines Matching refs:env
168 function execute($command, $args=NULL, $input=NULL, $cwd=NULL, $env=NULL) argument
179 $pipes, $cwd, $env);
218 function executeCode($php, $ini_overwrites, $code, $remove_headers=true, $cwd=NULL, $env=NULL) argument
226 $out = execute($php, $params, $code, $cwd, $env);
477 public $env = array(); variable in testHarness
483 $this->env = $_ENV;
588 …($this->conf['TEST_PHP_EXECUTABLE'],$this->ini_overwrites, $script,$removeheaders,$cwd,$this->env);
679 $this->env = array_merge($this->env,$this->conf);
689 $this->env['SSH_CLIENT']='deleted';
690 $this->env['SSH_AUTH_SOCK']='deleted';
691 $this->env['SSH_TTY']='deleted';
696 if (isset($this->env[$name])) {
697 $this->conf[$name] = $this->env[$name];
1008 system($this->env['CC']." $flag >/dev/null 2>&1", $cc_status);
1010 $compiler = shell_exec($this->env['CC']." $flag 2>&1");
1109 $env = $this->env;
1115 settings2array(preg_split( "/[\n\r]+/", $sect), $env);
1117 return $env;
1263 $env = $this->getENVSettings($section_text,$tmp_file);
1320 if (!array_key_exists('GATEWAY_INTERFACE', $env))
1321 $env['GATEWAY_INTERFACE']='CGI/1.1';
1322 if (!array_key_exists('SERVER_SOFTWARE', $env))
1323 $env['SERVER_SOFTWARE']='PHP Test Harness';
1324 if (!array_key_exists('SERVER_SOFTWARE', $env))
1325 $env['SERVER_NAME']='127.0.0.1';
1326 if (!array_key_exists('REDIRECT_STATUS', $env))
1327 $env['REDIRECT_STATUS']='200';
1328 if (!array_key_exists('SERVER_NAME', $env))
1329 $env['QUERY_STRING']=$query_string;
1330 if (!array_key_exists('PATH_TRANSLATED', $env) &&
1331 !array_key_exists('SCRIPT_FILENAME', $env)) {
1332 $env['PATH_TRANSLATED']=$tmp_file;
1333 $env['SCRIPT_FILENAME']=$tmp_file;
1335 if (!array_key_exists('PATH_TRANSLATED', $env))
1336 $env['PATH_TRANSLATED']='';
1337 if (!array_key_exists('PATH_INFO', $env))
1338 $env['PATH_INFO']='';
1339 if (!array_key_exists('SCRIPT_NAME', $env))
1340 $env['SCRIPT_NAME']='';
1341 if (!array_key_exists('SCRIPT_FILENAME', $env))
1342 $env['SCRIPT_FILENAME']='';
1347 if (!array_key_exists('REQUEST_METHOD', $env))
1348 $env['REQUEST_METHOD']='POST';
1349 if (!array_key_exists('CONTENT_TYPE', $env))
1350 $env['CONTENT_TYPE']='application/x-www-form-urlencoded';
1351 if (!array_key_exists('CONTENT_LENGTH', $env))
1352 $env['CONTENT_LENGTH']=$content_length;
1354 if (!array_key_exists('REQUEST_METHOD', $env))
1355 $env['REQUEST_METHOD']='GET';
1356 if (!array_key_exists('CONTENT_TYPE', $env))
1357 $env['CONTENT_TYPE']='';
1358 if (!array_key_exists('CONTENT_LENGTH', $env))
1359 $env['CONTENT_LENGTH']='';
1362 $this->writemsg("\nCONTENT_LENGTH = " . $env['CONTENT_LENGTH'] .
1363 "\nCONTENT_TYPE = " . $env['CONTENT_TYPE'] .
1364 "\nPATH_TRANSLATED = " . $env['PATH_TRANSLATED'] .
1365 "\nPATH_INFO = " . $env['PATH_INFO'] .
1366 "\nQUERY_STRING = " . $env['QUERY_STRING'] .
1367 "\nREDIRECT_STATUS = " . $env['REDIRECT_STATUS'] .
1368 "\nREQUEST_METHOD = " . $env['REQUEST_METHOD'] .
1369 "\nSCRIPT_NAME = " . $env['SCRIPT_NAME'] .
1370 "\nSCRIPT_FILENAME = " . $env['SCRIPT_FILENAME'] . "\n");
1375 $args = $env['QUERY_STRING'];
1391 $out = execute($this->conf['TEST_PHP_EXECUTABLE'],$args,$post,$this->cwd,$env);