Re: [PEAR] [ANNOUNCEMENT] Net_LDAP2-2.0.7 (stable) Released.

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: [PEAR] [ANNOUNCEMENT] Net_LDAP2-2.0.7 (stable) Released.

by Alexey Borzov :: Rate this Message:

Reply to Author | View Threaded | Show Only 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::LDAP
>                 object 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.7
>     Download: http://download.pear.php.net/package/Net_LDAP2-2.0.7.tgz
>
> Authors
> -------
> Benedikt Hallinger <beni@...> (lead)
>
>


--
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: Re: [PEAR] [ANNOUNCEMENT] Net_LDAP2-2.0.7 (stable) Released.

by Alexey Borzov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Alexey Borzov wrote:
> It also doesn't list ldap extension as its required dependency, but
> doesn't work with said extension, either.

with -> without

--
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php