note 45869 deleted from security.globals by tomsommer
| From: | tomsommer@php.net | Date: | Wed, 22 Sep 2004 19:28:57 +0000 |
| Subject: | note 45869 deleted from security.globals by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-77174@lists.php.net to get a copy of this message | ||
Note Submitter: djmaze(AT)cpgnuke(.)com
----
A solution to snarkles problem when running other servers then Apache:
if (intval(ini_get('register_globals')) != 0) {
// since IIS can't turn off register_globals as Apache thru .ht* we destroy them here
foreach ($_REQUEST AS $key => $val) {
if (isset($$key)) unset($$key);
}
}