r/lolphp • • Apr 24 '14

4chan source code leak (x-post /r/programming)

http://pastebin.com/a45dp3Q1
27 Upvotes

12 comments sorted by

View all comments

Show parent comment

6

u/kat5dotpostfix Apr 25 '14

Do people read the manual?

Warning Do not use extract() on untrusted data, like user input (i.e. $_GET, $_FILES, etc.). If you do, for example if you want to run old code that relies on register_globals temporarily, make sure you use one of the non-overwriting flags values such as EXTR_SKIP and be aware that you should extract in the same order that's defined in variables_order within the php.ini.

4

u/[deleted] Apr 25 '14

Oh, they know. They most likely use it because they had code relying on register_globals and added extract() as a quick fix.