Re: replacing pearweb ENV variables with SERVER
[email protected] (Greg Beaver)
| Newsgroups | php.pear.webmaster |
|---|---|
| Message-ID | <[email protected]> |
Christian Weiske wrote: > Hi Greg, > > >>> What I propose is to do the same for every other setting in >>> pear-config.php that uses $_ENV. Objections? >> That's fine. There is no way to unit test pearweb, because there's no >> way to inject $_SERVER in cgi that I've found. > Sorry, I did not know that. Now using $_ENV makes sense - for unit > tests. Do you happen to know if one can set $_ENV from within the > server configuration? I found no way. Using SetEnv in apache sets > $_SERVER only. > >> Not that it matters, >> it's like unit testing the federal government here: even though the >> tests are written, nobody is going to run them. > This is not true anymore. Now that we have our test and continuous > integration box, we'll set up regular test runs for pearweb as well. Sorry - setting environment can be done for the whole box by setting the values in the shell in which apache was started from. Greg