?

Log in

No account? Create an account
entries friends calendar profile Previous Previous Next Next
...register_globals. - IBNeko's Journal-Nyo~!
ibneko
ibneko
...register_globals.
....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::

Tags: ,

2 happy kittens | Leave catnip
Comments
fbartho From: fbartho Date: February 18th, 2007 02:06 am (UTC) (Link)
Dude, your webhost should have disabled register_globals anyways! Severely problem causing across the board and I think it leads to insecurity issues.
ibneko From: ibneko Date: February 18th, 2007 02:41 am (UTC) (Link)
Yeah. They're running 4.4.4, past the point where it's disabled by default. So.. I dunno. It's stupid.
2 happy kittens | Leave catnip