Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

the use of $GLOBALS


Recommended Posts

I noticed payment.php use $GLOBALS to store payment module instance, since register_globals is off, it will not really be accessible in the global scope. Is the intention here just to use $GLOBALS as a regular place holder to store the payment module in local scope?


$GLOBALS[$module_class] = new $module_class();

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...