Bug #18023: blank fields in chosen sort order cause decode error
| From: | patrick dot buick at wrx-ca dot com | Date: | Thu, 27 Jun 2002 19:25:02 +0000 |
| Subject: | Bug #18023: blank fields in chosen sort order cause decode error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-12261@lists.php.net to get a copy of this message | ||
From: patrick.buick@wrx-ca.com
Operating system: Windows 2000 Advanced Server
PHP version: 4.2.1
PHP Bug Type: LDAP related
Bug description: blank fields in chosen sort order cause decode error
Using PHP 4.2.1 on Windows 2000 Advanced Server under Apache 1.3.24, I do
an LDAP Connect, Bind and Search just fine.
I then use the (relatively) new ldap_sort() with a sort order of "sn",
with no error returned by the sort routine.
When I then attempt a ldap_get_entries on the sorted result, I get a
Decoding Error, LDAP error code 0x54.
If I ignore the error and print the array, it all prints fine with no
errors. (IE: No missing fields etc.)
The only oddity I can see in the output data is that one of the "sn"
fields is empty and by sort-order gets placed as the first item in the
array.
I haven't yet tried printing the entire raw array to see if there are any
other anomalies introduced into the data that echo "overlooks".
So, in Bill 'n Ted's example format:
What I did:
Obtained LDAP data and sorted it using ldap_sort() by "sn".
Attempted to use get_ldap_entries() and got error 0x54 decoding error.
What I wanted to happen:
I wanted an entry array sorted by "sn".
What I got:
An error, though if I ignore the error, I got an array
sorted by "sn".
--
Edit bug report at http://bugs.php.net/?id=18023&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18023&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18023&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18023&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18023&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18023&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18023&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18023&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18023&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18023&r=globals