Re: Access to $_SERVER from engine
| From: | Michael Wallner | Date: | Fri, 09 Dec 2005 16:22:18 +0000 |
| Subject: | Re: Access to $_SERVER from engine | ||
| References: | 1 2 3 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-3338@lists.php.net to get a copy of this message | ||
Hi Sara Golemon, you wrote:
> On the one hand you can check some of the sapi structs described in
> main/SAPI.h, but as far as your function goes, you should be type
> checking the fetched values. If someone's called: $_SERVER = false;
> or $_SERVER['SOME_KEY'] = 123.45; prior to your function being
> called, it could cause problems....
Thanks, fixed. I initially used the sapi things but it was hard to
do actual testing with them; the values needed to be in the ENV.
Thanks,
--
Michael - <mike(@)php.net> http://dev.iworks.at/ext-http/http-functions.html.gz