Menu

#1 wfb breaks in php 4.2.1

open
nobody
None
5
2002-08-08
2002-08-08
Anonymous
No

php's new handling of globals breaks the code.
A fix is adding the following at the beginning of the code:

foreach (array_merge($_GET,$_POST,$_PUT) as $k=>$val) {
$$k=$val;
}

Ideally, only those varaibles that are needed should be
included there, or reference should be made directly to
$_GET etc.

Stefan Engstrom

Discussion

  • Stefan Engstrom

    Stefan Engstrom - 2002-08-08

    Logged In: YES
    user_id=370150

    The same goes for some _SERVER variables as well.

    -SE

     
  • Adrian Sanabria

    Adrian Sanabria - 2002-09-07

    Logged In: YES
    user_id=599980

    This is fixed now! Someone should close the bug.

     

Log in to post a comment.