Re: PHP 4.0 Bug #5433 Updated: LDAP "Decoding error" when requesting non-existent attributes in a search op.

From: Date: Mon, 24 Jul 2000 19:49:31 +0000
Subject: Re: PHP 4.0 Bug #5433 Updated: LDAP "Decoding error" when requesting non-existent attributes in a search op.
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-25805@lists.php.net to get a copy of this message
On Mon, Jul 24, 2000 at 12:01:20PM -0000, Bug Database wrote: > ID: 5433 > User Update by: johan.troedsson@ei.sigma.se > Status: Feedback > Bug Type: LDAP related > Description: LDAP "Decoding error" when requesting non-existent attributes in a > search op. > > In the manual for ldap_get_entries it says: > > Returns a complete result information in a multi-dimenasional array on success and false on > *error*. > > In PHP4 false is returned when no entry in the search result contain one of the requested > attributes. In PHP3 true was returned in this case, and you could pick out the PHP-appended > "dn" array value for each entry (even if no other attribute was present). Yes, I remember I made PHP3 do that, I think PHP4 should too, I'll have a look later perhaps, been coding for 12 hours straight now... > Then the "decoding error" issue. It occurs more often than I thought (always?), when > retrieving entries using an ldap_get_xxxx function (even if the get function doesn't return > false). But a result array that seems to be OK is returned every time the function returns a > non-false value. > > I'm using openLDAP 1.2.10 as my LDAP server. Have you tried the same query with the ldap_search program? Could the decoding error have something to do with referrals? One can get decoding error with ldap_search too. Stig

« previous php.dev (#25805) next »