1.2.910. PHP 7.2 Removed Functions¶
The following PHP native functions were removed in PHP 7.2.
png2wbmp()
jpeg2wbmp()
create_function()
gmp_random()
This analysis skips redefined PHP functions : when a replacement for a removed PHP function was created, with condition on the PHP version, then its usage is considered valid.
See also PHP 7.2 Removed Functions and Deprecated features in PHP 7.2.x.
1.2.910.1. Suggestions¶
Replace the old functions with modern functions
Remove the usage of the old functions
Create an alternative function by wiring the old name to a new feature
1.2.910.2. Specs¶
Short name |
Php/Php72RemovedFunctions |
Rulesets |
|
Exakat since |
0.9.9 |
PHP Version |
With PHP 7.2 and older |
Severity |
Major |
Time To Fix |
Slow (1 hour) |
Precision |
Very high |
Available in |