...register_globals.

Feb 17, 2007 18:14

....I think they're the dumbest thing ever. Along with the lack of initializing variables.

I just spent over an hour trying to figure out why:
$userid = -1;
was overwriting the value in $_SESSION['userid'].

::really disliking PHP now::

coding, php

Leave a comment

Comments 2

fbartho February 18 2007, 02:06:24 UTC
Dude, your webhost should have disabled register_globals anyways! Severely problem causing across the board and I think it leads to insecurity issues.

Reply

ibneko February 18 2007, 02:41:21 UTC
Yeah. They're running 4.4.4, past the point where it's disabled by default. So.. I dunno. It's stupid.

Reply


Leave a comment

Up