[prev in list] [next in list] [prev in thread] [next in thread]
List: squirrelmail-cvs
Subject: [SM-CVS] SF.net SVN: squirrelmail:[14626] branches/SM-1_4-STABLE/squirrelmail/ functions/abook_ldap_
From: pdontthink () users ! sourceforge ! net
Date: 2016-12-10 11:04:39
Message-ID: E1cFfSN-000741-8y () sfs-ml-4 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]
Revision: 14626
http://sourceforge.net/p/squirrelmail/code/14626
Author: pdontthink
Date: 2016-12-10 11:04:39 +0000 (Sat, 10 Dec 2016)
Log Message:
-----------
Add PHP5-style constructor
Modified Paths:
--------------
branches/SM-1_4-STABLE/squirrelmail/functions/abook_ldap_server.php
Modified: branches/SM-1_4-STABLE/squirrelmail/functions/abook_ldap_server.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/functions/abook_ldap_server.php 2016-12-10 \
10:53:32 UTC (rev 14625)
+++ branches/SM-1_4-STABLE/squirrelmail/functions/abook_ldap_server.php 2016-12-10 \
11:04:39 UTC (rev 14626) @@ -100,10 +100,11 @@
var $protocol = '';
/**
- * 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('LDAP support missing from PHP');
return;
@@ -145,6 +146,14 @@
}
}
+ /**
+ * 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.
This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
-----
squirrelmail-cvs mailing list
List address: squirrelmail-cvs@lists.sourceforge.net
List info (subscribe/unsubscribe/change options): \
https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
Repository: http://squirrelmail.org/svn
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic