> Individually `print` `echo` `shell_exec` may be just as dangerous... It's up to the developer if they want to use them correctly.
and you don't have to install ext/mysql, they could just remove it from default configuration
and you don't have to install ext/mysql, they could just remove it from default configuration
Forming SQL by concatenating strings and variables is just bad practice and hopefully we can agree on that. ext/mysql provided no other option and this was just one of many issues with the extension.
Using ext/mysqli and PDO in a such a way (and I don't care if you're talking about retrofitting old code) is not even bad practice, it's just improper usage of the API when prepared statements should be used instead.
EDIT: Individually `print` `echo` `shell_exec` may be just as dangerous... It's up to the developer if they want to use them correctly.