1.2.784. New Functions In PHP 8.2¶
New functions are added to new PHP version.
The following functions are now native functions in PHP 8.2. It is compulsory to rename any custom function that was created in older versions. One alternative is to move the function to a custom namespace, and update the use list at the beginning of the script.
<?php
// Such function will not be possible in PHP 8.2 anymore
function memory_reset_peak_usage() {}
?>
1.2.784.1. Connex PHP features¶
1.2.784.1.1. Suggestions¶
Move custom functions with the same name to a new namespace
Change the name of any custom functions with the same name
Add a condition to the functions definition to avoid conflict
1.2.784.1.2. Specs¶
Short name |
Php/Php82NewFunctions |
Rulesets |
|
Exakat since |
2.3.0 |
PHP Version |
With PHP 8.2 and older |
Severity |
Major |
Time To Fix |
Quick (30 mins) |
Precision |
Very high |
Available in |