ID:               49544
 Updated by:       [email protected]
 Reported By:      lucas dot bru at terra dot com dot br
-Status:           Open
+Status:           Feedback
 Bug Type:         LDAP related
 Operating System: Ubuntu 9.10
 PHP Version:      5.3.0
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.




Previous Comments:
------------------------------------------------------------------------

[2009-09-13 15:10:40] lucas dot bru at terra dot com dot br

Description:
------------
Hi. the function ldap_add dont accpet if the array data haves
international characters like as "josé". See the code below.

Reproduce code:
---------------
 $info["uid"]                       = $_POST['uid'];
     $info["userPassword"]              = $_POST['userPassword'];
         $info["cn"]                        = $_POST['cn'];
     $info["sn"]                        = $_POST['sn'];
     $info["mail"]                      = $_POST['mail'];
     $info["objectClass"]               = "inetOrgPerson";
     $dn                                = "uid=" . $_POST['uid'] . ",
dc=thevip, dc=com,dc=br";

$result = ldap_add($conn, $dn, $info);

Expected result:
----------------
its works, but not if any data have latin characters like as "josé"
"maça" and all others

Actual result:
--------------
Warning: ldap_add() [function.ldap-add]: Add: Invalid syntax in
/var/www.........


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49544&edit=1

Reply via email to