[vc_row][vc_column][vc_btn title=”EXECUTION ENVIRONMENT” style=”outline” color=”sky” i_icon_fontawesome=”fa fa-cloud” add_icon=”true”][vc_empty_space height=”12px”][vc_column_text]
Avoid using deprecated MySQL commands
[/vc_column_text][vc_empty_space height=”12px”][vc_column_text]
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).
[/vc_column_text][vc_empty_space][vc_single_image image=”5362″ img_size=”full”][vc_row_inner][vc_column_inner width=”1/2″][vc_column_text]
Criticality
[/vc_column_text][vc_btn title=”BLOCKER” style=”flat” color=”juicy-pink” i_icon_fontawesome=”fa fa-exclamation-triangle” add_icon=”true” link=”url:http%3A%2F%2Fdoc.casthighlight.com%2Fcategory%2Fproduct%2Findicators-methodology%2Fcloudready%2Fblocker%2F|||”][vc_btn title=”LOW” style=”outline” color=”black” i_icon_fontawesome=”fa fa-bolt” add_icon=”true” link=”|||”][vc_column_text]
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).
[/vc_column_text][/vc_column_inner][vc_column_inner width=”1/2″][vc_column_text]
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.[/vc_column_text][/vc_column_inner][/vc_row_inner][vc_row_inner][vc_column_inner][vc_single_image image=”5362″ img_size=”full”][vc_column_text]
Searched Code Patterns
Detect and count the occurrences (roadblocks) of the following patterns in PHP source files:
mysql_connect("
mysql_select_db("
mysql_close("
[/vc_column_text][/vc_column_inner][/vc_row_inner][vc_row_inner][vc_column_inner][vc_single_image image=”5362″ img_size=”full”][vc_column_text]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
[/vc_column_text][/vc_column_inner][/vc_row_inner][/vc_column][/vc_row]
Leave a Reply