note 76079 added to security.globals

From: Date: Fri, 29 Jun 2007 05:19:35 +0000
Subject: note 76079 added to security.globals
Groups: php.notes 
Request: Send a blank email to php-notes+get-128070@lists.php.net to get a copy of this message
I couldn't get any of the suggested ways to disable register_globals to work in what I believe to be an Apache environment, where even phpinfo() is disabled. I finally had to resort to foreach(array_keys($_REQUEST) as $field) { unset(${$field}); } to get the $_REQUEST array without auto-setting all the request variables. I'm somewhat new to the whole PHP thing and wonder if there is a downside to this that I don't see. ---- Server IP: 208.69.120.35 Probable Submitter: 66.178.151.114 ---- Manual Page -- http://www.php.net/manual/en/security.globals.php Edit -- https://master.php.net/note/edit/76079 Del: integrated -- https://master.php.net/note/delete/76079/integrated Del: useless -- https://master.php.net/note/delete/76079/useless Del: bad code -- https://master.php.net/note/delete/76079/bad+code Del: spam -- https://master.php.net/note/delete/76079/spam Del: non-english -- https://master.php.net/note/delete/76079/non-english Del: in docs -- https://master.php.net/note/delete/76079/in+docs Del: other reasons-- https://master.php.net/note/delete/76079 Reject -- https://master.php.net/note/reject/76079 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128070) next »