PHP Deprecation Warnings

Looking to Bug #18254 :: Strict Standards errors I’ve found a way to shut up these warnings through the following patch to PEAR:

--- /usr/share/php/DB.php.original	2015-06-03 12:43:01.680808885 +0100
+++ /usr/share/php/DB.php	2015-06-03 15:56:28.194226505 +0100
@@ -589,7 +589,7 @@
      *
      * @return bool  whether $value is DB_Error object
      */
-    function isError($value)
+    static function isError($value)
     {
         return is_object($value) && is_a($value, 'DB_Error');		
     }
@@ -625,7 +625,7 @@
      *
      * @return boolean  whether $query is a data manipulation query
      */
-    function isManip($query)
+    static function isManip($query)
     {
         $manips = 'INSERT|UPDATE|DELETE|REPLACE|'
                 . 'CREATE|DROP|'

now I only need to find a way to shut up the following warning that appears in freepbx_debug:

2015-Jun-03 16:31:01 /usr/share/php/DB/mysql.php:240
[DEPRECATION_WARNING]: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead