title: Non-static method PEAR::isError() should not be called statically
body: <p>After upgrading from RHEL 5x to CentOS 6x, I started seeing these errors in my httpd log: </p>
  
  <blockquote>
    <p>PHP Strict Standards:  Non-static method PEAR::isError() should not be
    called statically in /web/sites/blah/somescript.php on line 33</p>
  </blockquote>
  
  <p>I saw similar errors for MDB2.  More on that in a sec.</p>
  
  <p>somescript.php:</p>
  
  <pre><code>32  $mdb2_dbx = MDB2::factory($dsn_mdb2, $mdb2_options);
  33  if (PEAR::isError($mdb2_dbx))
  34  {
  35      $err = '&lt;p&gt;Cannot connect to database: ' . $mdb2_dbx-&gt;getMessage();
  36      errorHandler($err);
  37  }   
  </code></pre>
  
  <p>The first thing I did was edit <code>/etc/php.ini</code> and add <code>&amp; ~E_STRICT</code> to <a href="http://php.net/manual/en/migrating5.errorrep.php">error reporting</a>.  Restarted httpd to load the new config.   Still getting these error messages.</p>
  
  <p>Others mentioned the same problem with MDB2, so I updated these packages to the <a href="http://pear.php.net/package/MDB2/download/All">beta releases</a>.  This seemed to address MDB2 errors, but I'm still getting the PEAR error messages in httpd log file.</p>
  
  <p><strong>System info:</strong></p>
  
  <pre><code># pear list
  PEAR               1.9.4   stable
  MDB2               2.5.0b5 beta
  MDB2_Driver_mysql  1.5.0b4 beta
  MDB2_Driver_mysqli 1.5.0b4 beta
  
  # php --version
  PHP 5.4.20 (cli) (built: Sep 18 2013 19:55:33) 
  
  # cat /etc/centos-release 
  CentOS release 6.4 (Final)
  
  # apachectl -v
  Server version: Apache/2.2.15 (Unix)
  </code></pre>
  
  <p><strong>Question</strong></p>
  
  <p>Is there a different way of invoking <code>PEAR::isError()</code> that will not produce errors?</p>