1.2.344. Deprecated PHP Functions

The following functions are deprecated. It is recommended to stop using them now and replace them with a durable equivalent.

Note that these functions may be still usable : they generate warning that help tracking their usage in the log. To eradicate their usage, watch the logs, and update any deprecated warning. This way, the code won’t be stuck when the function is actually removed from PHP.

<?php

// This is the current function
list($day, $month, $year) = explode('/', '08/06/1995');

// This is deprecated
list($day, $month, $year) = split('/', '08/06/1995');

?>

1.2.344.1. Suggestions

  • Replace those deprecated with modern syntax

  • Stop using deprecated syntax

1.2.344.2. Specs

Short name

Php/Deprecated

Rulesets

All, Analyze, CE, CI-checks

Exakat since

0.8.4

PHP Version

All

Severity

Major

Time To Fix

Quick (30 mins)

Precision

High

Features

crypto

ClearPHP

no-deprecated

Examples

Dolphin

Available in

Entreprise Edition, Community Edition, Exakat Cloud