1.2.1093. Set Class Remote Definition With Global¶
Links method calls to tehir definition, thanks to the global definition. The link is DEFINITION
.
<?php
class X {
public function bar() { }
}
global $x;
$x = new X;
function foo() {
global $x;
// This links to class x, method bar(), thanks to global.
return $x->bar();
}
?>
1.2.1093.1. Specs¶
Short name |
Complete/SetClassRemoteDefinitionWithGlobal |
Rulesets |
|
Exakat since |
1.9.3 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
Very high |
Available in |