The set_magic_quotes_runtime function has been deprecated since PHP 5.3 and removed in PHP 7.0.
It is true that the MySQL extension is deprecated, and it is recommended to use either MySQLi or PDO instead.