1.2.909. PHP 7.0 Removed Functions¶
The following PHP native functions were removed in PHP 7.0.
ereg()
ereg_replace()
eregi()
eregi_replace()
split()
spliti()
sql_regcase()
call_user_method()
call_user_method_array()
set_socket_blocking()
mcrypt_ecb()
mcrypt_cbc()
mcrypt_cfb()
mcrypt_ofb()
datefmt_set_timezone_id()
imagepsbbox()
imagepsencodefont()
imagepsextendfont()
imagepsfreefont()
imagepsloadfont()
imagepsslantfont()
imagepstext()
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.0 Removed Functions.
1.2.909.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.909.2. Specs¶
Short name |
Php/Php70RemovedFunctions |
Rulesets |
All, Changed Behavior, CompatibilityPHP70, CompatibilityPHP71 |
Exakat since |
0.8.4 |
PHP Version |
With PHP 7.0 and older |
Severity |
Major |
Time To Fix |
Slow (1 hour) |
Precision |
Very high |
Available in |