PHP 4.0 Bug #3305 Updated: Global vars and mail() unpredictability
| From: | Bug Database | Date: | Mon, 24 Jan 2000 22:47:28 +0000 |
| Subject: | PHP 4.0 Bug #3305 Updated: Global vars and mail() unpredictability | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14892@lists.php.net to get a copy of this message | ||
ID: 3305
Updated by: torben
Reported By: joel@nextstudio.com
Status: Closed
Bug Type: Other
Assigned To:
Comments:
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().
Torben
Full Bug description available at: http://bugs.php.net/?id=3305