From f774a1ed637237652b0e34ef0a1e8226d1b88cca Mon Sep 17 00:00:00 2001 From: pdontthink Date: Sat, 10 Dec 2016 11:04:56 +0000 Subject: [PATCH] Add PHP5-style constructor git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14627 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/abook_ldap_server.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/functions/abook_ldap_server.php b/functions/abook_ldap_server.php index 02c6ad75..8bf7cf74 100644 --- a/functions/abook_ldap_server.php +++ b/functions/abook_ldap_server.php @@ -178,10 +178,11 @@ class abook_ldap_server extends addressbook_backend { var $starttls = false; /** - * Constructor. Connects to database + * Constructor (PHP5 style, required in some future version of PHP) + * Connects to the database * @param array connection options */ - function abook_ldap_server($param) { + function __construct($param) { if(!function_exists('ldap_connect')) { $this->set_error(_("PHP install does not have LDAP support.")); return; @@ -255,6 +256,14 @@ class abook_ldap_server extends addressbook_backend { } } + /** + * Constructor (PHP4 style, kept for compatibility reasons) + * Connects to the database + * @param array connection options + */ + function abook_ldap_server($param) { + return self::__construct($param); + } /** * Open the LDAP server. -- 2.25.1