PEAR.php
authorAlan Knowles <alan@roojs.com>
Tue, 31 Jul 2012 05:31:12 +0000 (13:31 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 31 Jul 2012 05:31:12 +0000 (13:31 +0800)
PEAR.php

index bede744..d84ed3e 100644 (file)
--- a/PEAR.php
+++ b/PEAR.php
@@ -1032,7 +1032,7 @@ class PEAR_Error
                            'callback=%s prefix="%s" info="%s"]',
                            strtolower(get_class($this)), $this->message, $this->code,
                            $callback, $this->error_message_prefix,
-                           $this->userinfo);
+                           is_string($this->userinfo) ? $this->userinfo : print_r($this->userinfo,true));
         }
         if ($this->mode & PEAR_ERROR_PRINT) {
             $modes[] = 'print';