Re: Net_LDAP & Exceptions
| From: | Jan Wagner | Date: | Wed, 14 Sep 2005 08:42:06 +0000 |
| Subject: | Re: Net_LDAP & Exceptions | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20959@lists.php.net to get a copy of this message | ||
Am Dienstag, den 13.09.2005, 15:02 -0400 schrieb Jeff Loiselle:
> > I dont know about Net_LDAP using exceptions. Which php/pear/net_ldap
> > combination are you running? To me it seems PEAR throws the Exception as
> > the class should return only Net_LDAP_Errors (looks like that in your
> > backtrace).
> >
> > Jan
>
> PHP 5.0.4
> PEAR 1.3.5
> Net_LDAP 0.6.6
Well, I can second that. Just tested with PHP 5.0.4, PEAR 1.3.6 and
current Net_LDAP CVS. The problem is an incorrect declaration of
Net_LDAP_Error which passes the ldap errno to PEAR_Error as mode which
happens to be PEAR_Error_Exception in case of failing binds. Bad Luck, I
guess. Fixed (hopefully) in CVS Net_LDAP_0_6 branch. I hope to release
an update with more bugfixes soon.
Cheers Jan