ID: 22569 Updated by: [EMAIL PROTECTED] Reported By: jmorvan at sdd dot fr -Status: Open +Status: Feedback Bug Type: LDAP related Operating System: RedHat 7.3 PHP Version: 4.2.3 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip And if this happens with it too, try with the CLI binary. If it happens with the CLI binary too: 1. What openldap version? 2. Are you sure it isn't that array_multisort() that causes this? replace that result printing with var_dump() call. Previous Comments: ------------------------------------------------------------------------ [2003-03-06 09:50:17] jmorvan at sdd dot fr Accentuated characters accentuated characters not managed by request PHP towards a OpenLDAP waiter via apache2. defaultCharset is iso-8859-1 in php.ini all Characters "é;à;è;ä;...." are replaced by generic characters. OpenLdap functions work correctly with other customer applications of LDAP requests. ex: in openLdap "sytèmes" = "systèmes" with php + Apache2 short script function: ###############search####################### if ($ds) { $r=ldap_bind($ds); // Ceci est un lien "anonymous", typiquement // Recherche dans les noms $sr=ldap_search($ds, $LDAP_BASE_DN, "l=$_POST[site]"); $infoLdap = ldap_get_entries($ds, $sr); ldap_close($ds); } ###############Result Printing############### $infoLdapTri = array("vide" => array("vide" => "vide")); for ($i=0; $i<$infoLdap["count"]; $i++) { $infoLdapTri["sn"][$i] = $infoLdap[$i]["sn"][0]; $infoLdapTri["givenname"][$i] = $infoLdap[$i]["givenname"][0]; $infoLdapTri["mail"][$i] = $infoLdap[$i]["mail"][0]; $infoLdapTri["homephone"][$i] = $infoLdap[$i]["homephone"][0]; $infoLdapTri["site"][$i] = $infoLdap[$i]["l"][0]; $infoLdapTri["uid"][$i] = $infoLdap[$i]["uid"][0]; } array_multisort($infoLdapTri["sn"], SORT_STRING, SORT_ASC, $infoLdapTri[ "givenname"], $infoLdapTri["mail"], $infoLdapTri["homephone"], $infoLdapTri["sit e"], $infoLdapTri["uid"]); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22569&edit=1