Avoid using deprecated MySQL commands

Avoid using deprecated MySQL commands

This pattern verifies in source code (.php) the presence of deprecated MySQL commands (mysql_connect, mysql_select_db, mysql_close). As deprecated commands might be interrupted in the future, they should be replaced by currenlty supported commands (mysqli or PDO).

Criticality

The criticality level impacts the application Cloud Maturity score, whether it is a blocker (a negative pattern found during the code scan) or a booster (a pattern that makes your app more Cloud-ready) and the corresponding level (low, medium, high, critical).

Migration Impacts

[nz_btn text="Code" link="#" target="_self" icon="icon-heart-broken" animate="false" animation_type="ghost" color="black" size="small" shape="rounded" type="normal" hover_normal="fill" hover_ghost="fill" el_class="" /] Migration impact levels indicate the different layers of your application that you should modify or fix, in order to comply with Cloud-oriented programming best practices and remove the identified roadblocks.

Searched Code Patterns

Detect and count the occurrences (roadblocks) of the following patterns in PHP source files:
mysql_connect("
mysql_select_db("
mysql_close("
References https://www.php.net/manual/en/pdo.connections.php https://stackoverflow.com/questions/21797118/deprecated-mysql-connect https://dev.mysql.com/doc/apis-php/en/apis-php-function.mysqli-connect.html
For reference only. For the complete details please refer the original article
https://doc.casthighlight.com/cloudready_db_access_mysql/
Have more questions? Submit a request

Comments

Powered by Zendesk