diff --git a/auth/fc/fcFPP.php b/auth/fc/fcFPP.php index 36c589e4e3f..2adc309c712 100644 --- a/auth/fc/fcFPP.php +++ b/auth/fc/fcFPP.php @@ -38,6 +38,12 @@ class fcFPP $this->_pwd = ""; } + function fcFPP($host="localhost", $port="3333") + { + debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER); + self::__construct($host, $port); + } + // open a connection to the FirstClass server function open() { diff --git a/lib/pear/Crypt/CHAP.php b/lib/pear/Crypt/CHAP.php index 333db9bf071..f8f4d04529a 100644 --- a/lib/pear/Crypt/CHAP.php +++ b/lib/pear/Crypt/CHAP.php @@ -91,6 +91,12 @@ class Crypt_CHAP extends PEAR $this->generateChallenge(); } + function Crypt_CHAP() + { + debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER); + self::__construct(); + } + /** * Generates a random binary challenge * @@ -173,6 +179,12 @@ class Crypt_CHAP_MSv1 extends Crypt_CHAP $this->loadExtension('hash'); } + function Crypt_CHAP_MSv1() + { + debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER); + self::__construct(); + } + /** * Generates the NT-HASH from the given plaintext password. * diff --git a/mnet/xmlrpc/client.php b/mnet/xmlrpc/client.php index 3597cd58e35..502048bdd8d 100644 --- a/mnet/xmlrpc/client.php +++ b/mnet/xmlrpc/client.php @@ -30,6 +30,16 @@ class mnet_xmlrpc_client { $this->mnet = get_mnet_environment(); } + /** + * Old syntax of class constructor. Deprecated in PHP7. + * + * @deprecated since Moodle 3.1 + */ + public function mnet_xmlrpc_client() { + debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER); + self::__construct(); + } + /** * Allow users to override the default timeout * @param int $timeout Request timeout in seconds diff --git a/mnet/xmlrpc/xmlparser.php b/mnet/xmlrpc/xmlparser.php index caf52ea158b..9afdcb49311 100644 --- a/mnet/xmlrpc/xmlparser.php +++ b/mnet/xmlrpc/xmlparser.php @@ -21,6 +21,16 @@ class mnet_encxml_parser { return $this->initialise(); } + /** + * Old syntax of class constructor. Deprecated in PHP7. + * + * @deprecated since Moodle 3.1 + */ + public function mnet_encxml_parser() { + debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER); + self::__construct(); + } + /** * Set default element handlers and initialise properties to empty. *