summaryrefslogtreecommitdiff
path: root/pear
diff options
context:
space:
mode:
authorMartin Jansen <mj@php.net>2003-03-13 21:07:40 +0000
committerMartin Jansen <mj@php.net>2003-03-13 21:07:40 +0000
commit1188dbe64fc00648303991abe883f618b8c354c3 (patch)
tree105b0ec4b8e3501ec4c446c335f296eff5bccca7 /pear
parentdedfa808bb0a525fac88c5158c12ff818aa50774 (diff)
downloadphp-git-1188dbe64fc00648303991abe883f618b8c354c3.tar.gz
* Fixing bug #21845.
Diffstat (limited to 'pear')
-rw-r--r--pear/PEAR.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/pear/PEAR.php b/pear/PEAR.php
index ebaf837d94..c4a0d94b0e 100644
--- a/pear/PEAR.php
+++ b/pear/PEAR.php
@@ -533,7 +533,7 @@ class PEAR
$code = null,
$userinfo = null)
{
- if (isset($this)) {
+ if (isset($this) && is_subclass_of($this, 'PEAR_Error')) {
return $this->raiseError($message, $code, null, null, $userinfo);
} else {
return PEAR::raiseError($message, $code, null, null, $userinfo);