1.2.390. Dynamic Calls¶
This rule lists all dynamic calls. This is convenient when one has to review them manually.
Only the dynamic call is listed : the sources are left in their context.
<?php
$a = 'b';
// Dynamic call of a constant
echo constant($a);
// Dynamic variables
$$a = 2;
echo $b;
// Dynamic call of a function
$a('b');
// Dynamic call of a method
$object->$a('b');
// Dynamic call of a static method
A::$a('b');
?>
1.2.390.1. Connex PHP features¶
1.2.390.1.1. Specs¶
Short name |
Structures/DynamicCalls |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
High |
Available in |