1.2.59. Autoloading¶
Usage of the autoloading feature of PHP.
Defining the __autoload() function is obsolete since PHP 7.2.
<?php
spl_autoload_register('my_autoloader');
// Old way to autoload. Deprecated in PHP 7.2
function __autoload($class ) {}
?>
See also __autoload.
1.2.59.1. Specs¶
Short name |
Php/AutoloadUsage |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Features |
autoload |
Available in |