note 103430 added to function.extract

From: Date: Wed, 13 Apr 2011 00:07:21 +0000
Subject: note 103430 added to function.extract
Groups: php.notes 
Request: Send a blank email to php-notes+get-178783@lists.php.net to get a copy of this message
Warning: in larger php web applications this is not a good choice. Use of this function will not help maintainability of your code. please read php warnings about using this on untrusted data: $sql=query("SELECT * FROM contact WHERE contact_id='$invoicedata_clientcontact'"); if ($tmp=fetch_array($sql)) { extract($tmp); } it will create variables that may overwrite other variables and can cause strange behaviour, advise against using this function if at all possible. ---- Server IP: 202.89.58.1 Probable Submitter: 120.136.7.60 ---- Manual Page -- http://www.php.net/manual/en/function.extract.php Edit -- https://master.php.net/note/edit/103430 Del: integrated -- https://master.php.net/note/delete/103430/integrated Del: useless -- https://master.php.net/note/delete/103430/useless Del: bad code -- https://master.php.net/note/delete/103430/bad+code Del: spam -- https://master.php.net/note/delete/103430/spam Del: non-english -- https://master.php.net/note/delete/103430/non-english Del: in docs -- https://master.php.net/note/delete/103430/in+docs Del: other reasons-- https://master.php.net/note/delete/103430 Reject -- https://master.php.net/note/reject/103430 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#178783) next »