Global Variables Testing

2006-04-21
2013-04-15
  • Josh Konkol
    Josh Konkol
    2006-04-21

    I need some testers. 

    I need to know what is broken when you disable global_variables in your php.ini and put the following at the bottom of dbconfig.php

    // Attempt at removing global_variables requirement
    extract($_POST);

    Please post to this thread your successes and failures.

    Thanks,

    Josh

     
    • bigblueswope
      bigblueswope
      2006-09-07

      Using debian stable with the following apache, php and mysql I had to reenable globals.  The variables such as $contactgroup_id in contactgroups.php would be undefined if globals were turned off.

      If I expressly declared
      $contactgroup_id = $_GET["contactgroup_id"];

      Then I would get the Group Name in the "Contact Group Membership" page.  The problem then becomes when trying to delete the group, the contactgroup_id is passed in a POST variable and the declaration above will not work.

      I didn't go much further into it because I'm not a php slinger and it would be kinda futile.  Sorry

      /usr/sbin/apache2 -v
      Server version: Apache/2.0.54
      Server built:   Jul 28 2006 09:04:55

      /usr/bin/php -v
      PHP 4.3.10-16 (cli) (built: Aug 24 2005 20:25:01)
      Copyright (c) 1997-2004 The PHP Group
      Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

      /usr/bin/mysql -V
      /usr/bin/mysql  Ver 12.22 Distrib 4.0.24, for pc-linux-gnu (i386)