From: ninglis at nextdigital dot com Operating system: FreeBSD 7 PHP version: 5.2.6 PHP Bug Type: LDAP related Bug description: ldap_get_entries does not preserve the case of the attribute
Description: ------------ ldap_get_entries() does not preserve the correct case of teh attribute names from ldap_search result. eg: "objectClass" becomes "objectclass" if I use ldap_get_attributes() I do not get this problem. the loss of case is very important as if you try to reinsert these values, the attribute names no longer match the LDAP schema. Expected result: ---------------- ["objectClass"]=> array(5) { ["count"]=> int(4) [0]=> string(3) "top" [1]=> string(6) "person" [2]=> string(13) "inetOrgPerson" [3]=> string(9) "qmailUser" } [2]=> string(11) "objectClass" Actual result: -------------- this is a snipet of the vardump: As you can see the "objectclass" attribute has lost its camel case ["objectclass"]=> array(5) { ["count"]=> int(4) [0]=> string(3) "top" [1]=> string(6) "person" [2]=> string(13) "inetOrgPerson" [3]=> string(9) "qmailUser" } [2]=> string(11) "objectclass" -- Edit bug report at http://bugs.php.net/?id=45990&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45990&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45990&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45990&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45990&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45990&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45990&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45990&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45990&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45990&r=support Expected behavior: http://bugs.php.net/fix.php?id=45990&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45990&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45990&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45990&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45990&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45990&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45990&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45990&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45990&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45990&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45990&r=mysqlcfg