Re: [ANNOUNCEMENT] Net_LDAP2-2.0.7 (stable) Released.
| From: | Alexey Borzov | Date: | Wed, 28 Oct 2009 08:25:37 +0000 |
| Subject: | Re: [ANNOUNCEMENT] Net_LDAP2-2.0.7 (stable) Released. | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-52979@lists.php.net to get a copy of this message | ||
Hi,
I looked at Net_LDAP2 package thinking to replace Net_LDAP in one project and noticed its quite liberal approach to coding standards: while the package lists PHP5 in dependencies and there are "public" and "protected" modifiers in the code, the class itself extends PEAR and error reporting is done with PEAR_Errors instead of Exceptions.
http://pear.php.net/manual/en/standards.e_strict.php
http://pear.php.net/manual/en/standards.errors.php
It also doesn't list ldap extension as its required dependency, but doesn't work with said extension, either.
Code to trigger the problem (especially if ldap extension is missing or LDAP isn't running on localhost:389):
<?php
error_reporting(E_ALL | E_STRICT);
require_once 'Net/LDAP2.php';
var_dump(Net_Ldap2::connect());
?>
PEAR Announce wrote:
The new PEAR package Net_LDAP2-2.0.7 (stable) has been released at http://pear.php.net/. Release notes ------------- * Corrected bug #16738 (Problem with Net_LDAP2_Filter::parse() with complex filter, when first subfilter was an combined filter too) Package Info ------------ Net_LDAP2 is the successor of Net_LDAP which is a clone of Perls Net::LDAPobject interface to directory servers. It does contain most of Net::LDAPs features but has some own too. With Net_LDAP2 you have: * A simple object-oriented interface to connections, searches entries and filters. * Support for tls and ldap v3. * Simple modification, deletion and creation of ldap entries. * Support for schema handling.Net_LDAP2 layers itself on top of PHP's existing ldap extensions.Related Links ------------- Package home: http://pear.php.net/package/Net_LDAP2 Changelog: http://pear.php.net/package/Net_LDAP2/download/2.0.7Download: http://download.pear.php.net/package/Net_LDAP2-2.0.7.tgzAuthors ------- Benedikt Hallinger <beni@php.net> (lead)