From dd680c8e0cba22009e789dfa8844766146cf4e90 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 6 Jul 2015 08:35:04 +0000 Subject: [PATCH] (legacy) fix static in PEAR include --- src/etc/inc/CHAP.inc | 2 +- src/etc/inc/PEAR.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/inc/CHAP.inc b/src/etc/inc/CHAP.inc index e01842290..7c3c6dd73 100644 --- a/src/etc/inc/CHAP.inc +++ b/src/etc/inc/CHAP.inc @@ -170,7 +170,7 @@ class Crypt_CHAP_MSv1 extends Crypt_CHAP function Crypt_CHAP_MSv1() { $this->Crypt_CHAP(); - $this->loadExtension('hash'); + self::loadExtension('hash'); } /** diff --git a/src/etc/inc/PEAR.inc b/src/etc/inc/PEAR.inc index e7b4731b0..6fb91a3ef 100644 --- a/src/etc/inc/PEAR.inc +++ b/src/etc/inc/PEAR.inc @@ -704,7 +704,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;