Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2010-07-04 18:03:10 +0400
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2010-07-04 18:03:10 +0400
commitf00a5d1f59069dc7cf0cc52fceaaeffd98d789d3 (patch)
treeed777af85cff42b05fce305ec3df1f4e2d00838f /libs
parentb23bfd8f490e837a5658349f32a05e90ff927195 (diff)
is_a() is deprecated for php 5.0.x to 5.2.x
Diffstat (limited to 'libs')
-rw-r--r--libs/PEAR.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/PEAR.php b/libs/PEAR.php
index d3814a158d..aa61ed4b2c 100644
--- a/libs/PEAR.php
+++ b/libs/PEAR.php
@@ -249,7 +249,7 @@ class PEAR
*/
static function isError($data, $code = null)
{
- if (!is_a($data, 'PEAR_Error')) {
+ if (!($data instanceof PEAR_Error)) {
return false;
}
@@ -302,7 +302,7 @@ class PEAR
*/
function setErrorHandling($mode = null, $options = null)
{
- if (isset($this) && is_a($this, 'PEAR')) {
+ if (isset($this) && ($this instanceof PEAR)) {
$setmode = &$this->_default_error_mode;
$setoptions = &$this->_default_error_options;
} else {
@@ -554,7 +554,7 @@ class PEAR
*/
function &throwError($message = null, $code = null, $userinfo = null)
{
- if (isset($this) && is_a($this, 'PEAR')) {
+ if (isset($this) && ($this instanceof PEAR)) {
$a = &$this->raiseError($message, $code, null, null, $userinfo);
return $a;
}
@@ -649,7 +649,7 @@ class PEAR
function pushErrorHandling($mode, $options = null)
{
$stack = &$GLOBALS['_PEAR_error_handler_stack'];
- if (isset($this) && is_a($this, 'PEAR')) {
+ if (isset($this) && ($this instanceof PEAR)) {
$def_mode = &$this->_default_error_mode;
$def_options = &$this->_default_error_options;
} else {
@@ -658,7 +658,7 @@ class PEAR
}
$stack[] = array($def_mode, $def_options);
- if (isset($this) && is_a($this, 'PEAR')) {
+ if (isset($this) && ($this instanceof PEAR)) {
$this->setErrorHandling($mode, $options);
} else {
PEAR::setErrorHandling($mode, $options);
@@ -680,7 +680,7 @@ class PEAR
array_pop($stack);
list($mode, $options) = $stack[sizeof($stack) - 1];
array_pop($stack);
- if (isset($this) && is_a($this, 'PEAR')) {
+ if (isset($this) && ($this instanceof PEAR)) {
$this->setErrorHandling($mode, $options);
} else {
PEAR::setErrorHandling($mode, $options);