# PHP Deprecation Warnings

**URL:** <https://community.freepbx.org/t/php-deprecation-warnings/29505>\
**Category:** General Help\
**Created:** [June 2, 2015, 10:37am UTC](https://community.freepbx.org/t/php-deprecation-warnings/29505 "2015-06-02T10:37:09Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![jmpg](https://community.freepbx.org/user_avatar/community.freepbx.org/jmpg/32/28795_2.png) [@jmpg](https://community.freepbx.org/u/jmpg)\
**Post date:** [June 3, 2015, 3:32pm UTC](https://community.freepbx.org/t/php-deprecation-warnings/29505/19 "2015-06-03T15:32:21Z")

</div>

Looking to [Bug #18254 :: Strict Standards errors](http://pear.php.net/bugs/bug.php?id=18254) I’ve found a way to shut up these warnings through the following patch to PEAR:

```auto
--- /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

---

_[View the full topic](https://community.freepbx.org/t/php-deprecation-warnings/29505)._
