RE: PHP 4.0 Bug #3305 Updated: Global vars and mail() unpredictab ility
| From: | Joel Walsh | Date: | Mon, 24 Jan 2000 23:03:57 +0000 |
| Subject: | RE: PHP 4.0 Bug #3305 Updated: Global vars and mail() unpredictab ility | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14894@lists.php.net to get a copy of this message | ||
Understood, however, "webmaster@".$SERVER_NAME should not have worked in
the from and reply-to headers either.
That's what through me off. I guess sendmail could be sticking the
hostname in there by itself now that I think about it. ;-)
> This is a scoping problem, not a bug. Remember, global variables are
> not available by default inside functions. Add the following line:
>
> global $SERVER_NAME, $REQUEST_URI, $REMOTE_ADDR, $QUERY_STRING;
>
> as the first line of your function to allow access to those
> globals within status_mail().