ID:               30396
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mojgan53 at hotmail dot com
-Status:           Feedback
+Status:           Bogus
 Bug Type:         *Compile Issues
 Operating System: Windows XP
 PHP Version:      4.3.8
 New Comment:

In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.

.


Previous Comments:
------------------------------------------------------------------------

[2004-10-11 19:50:16] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.

The code snippet has not much to do with your bug report. Obviously we
are not interested in the code that happens after the error and of
course we are not interested in your complete code.

Also always try the latest version which is either 4.3.9 or 5.0.2 or
CVS of course.

------------------------------------------------------------------------

[2004-10-11 15:57:36] mojgan53 at hotmail dot com

Description:
------------
When I configure PHP4, I get this notice. This is not happening in
upper versions.

Reproduce code:
---------------
if($action == "assigngroup")
   {
      if(!is_blank($group_id))
      {
         $sql = "DELETE FROM users2groups WHERE user_id = '" . $user_id
. "';";
         mysql_query($sql);
         if($group_id != 0)
         {
            $sql = "INSERT INTO users2groups (user_id, group_id) VALUES
('" . $user_id . "', '" . $group_id . "');";
            mysql_query($sql);
         }
      }
      header("Location: users.php?action=view&user_id=" . $user_id);
      exit;
   }



Expected result:
----------------
Notice: Undefined variable: action in c:\program
files\easyphp1-7\www\admin\users.php on line 220



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30396&edit=1

Reply via email to