PHP Classes

PHP Register Globals Logger: Log the usage of registered global variables

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 187 This week: 1All time: 8,624 This week: 560Up
Version License PHP version Categories
registergloballogger 1.0.1MIT/X Consortium ...5.2.1PHP 5, Logging, Language
Description 

Author

This class can log the usage of registered global variables.

It takes the values of all variables that would be assigned to global variables when register_globals is enables and initialize those global variables to objects of the class.

The class returns the original registered values but also logs the accesses to the global variables to help legacy applications find and fix old code that accesses registered global variables when register_globals option is on.

Innovation Award
PHP Programming Innovation award nominee
December 2013
Number 7
The register_globals option was removed from PHP 5.4 after several years of being discouraged.

However, there are always legacy applications that still rely on the register globals functionality.

This class not only can emulate the register globals option functionality, but it can also log the parts of the code of legacy applications that still rely on this feature, thus helping the developers to find and fix their code.

Manuel Lemos
Picture of Matthew Daniel
  Performance   Level  
Name: Matthew Daniel <contact>
Classes: 3 packages by
Country: United States United States
Age: 43
All time rank: 2739379 in United States United States
Week rank: 411 Up48 in United States United States Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Accessible without login Plain text file class_globallogger.php Class register and log registered_globals usage
Accessible without login Plain text file example.php Example example usage of global logger

 Version Control Unique User Downloads Download Rankings  
 0%
Total:187
This week:1
All time:8,624
This week:560Up