summaryrefslogtreecommitdiffstats
path: root/3rdparty/PEAR.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-05-13 20:49:39 +0200
committerRobin Appelman <icewind@owncloud.com>2012-05-13 20:53:55 +0200
commit77e2387d94b7f6c9574cbed8a5d242628391906c (patch)
tree115763ce8937aea7a51d294152b66f59d71c1ae1 /3rdparty/PEAR.php
parentddf0903ace00d201e4575790d9e910b2bc24496b (diff)
downloadnextcloud-server-77e2387d94b7f6c9574cbed8a5d242628391906c.tar.gz
nextcloud-server-77e2387d94b7f6c9574cbed8a5d242628391906c.zip
more MDB2 updates
Diffstat (limited to '3rdparty/PEAR.php')
-rw-r--r--3rdparty/PEAR.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/3rdparty/PEAR.php b/3rdparty/PEAR.php
index 2aa85259d62..501f6a653d8 100644
--- a/3rdparty/PEAR.php
+++ b/3rdparty/PEAR.php
@@ -247,7 +247,7 @@ class PEAR
* @access public
* @return bool true if parameter is an error
*/
- function isError($data, $code = null)
+ static function isError($data, $code = null)
{
if (!is_a($data, 'PEAR_Error')) {
return false;
@@ -469,7 +469,7 @@ class PEAR
* @see PEAR::setErrorHandling
* @since PHP 4.0.5
*/
- function &raiseError($message = null,
+ static function &raiseError($message = null,
$code = null,
$mode = null,
$options = null,
@@ -555,11 +555,11 @@ class PEAR
function &throwError($message = null, $code = null, $userinfo = null)
{
if (isset($this) && is_a($this, 'PEAR')) {
- $a = &$this->raiseError($message, $code, null, null, $userinfo);
+ $a = $this->raiseError($message, $code, null, null, $userinfo);
return $a;
}
- $a = &PEAR::raiseError($message, $code, null, null, $userinfo);
+ $a = PEAR::raiseError($message, $code, null, null, $userinfo);
return $a;
}
@@ -695,7 +695,7 @@ class PEAR
* @param string $ext The extension name
* @return bool Success or not on the dl() call
*/
- function loadExtension($ext)
+ static function loadExtension($ext)
{
if (extension_loaded($ext)) {
return true;