1.2.174. Collect Global Variables¶
This rule collects the names of the global variables. The global variables are collected from
$GLOBALS
usage,global
keyword usage and variables in the global space.
<?php
global $x;
$GLOBALS['y'] = 3;
?>
1.2.174.1. Specs¶
Short name |
Dump/CollectGlobalVariables |
Rulesets |
|
Exakat since |
2.1.7 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
High |
Features |
global |
Available in |