|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5796 ldap_get_values_len fails when a value contains NULL characters
Submitted: 2000-07-26 16:26 UTC Modified: 2000-07-28 02:08 UTC
From: alexel at dr15 dot cnrs dot fr Assigned:
Status: Closed Package: LDAP related
PHP Version: 4.0.1 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
12 + 21 = ?
Subscribe to this entry?

 [2000-07-26 16:26 UTC] alexel at dr15 dot cnrs dot fr
In fact it seems that ldap_get_values_len has the same behaviour as ldap_get_values.
In order to fix that i corrected the funtion :
	ldap_get_values_len in file php-4.0.1/ext/ldap/ldap.c

I replaced  the line :

add_next_index_string(return_value, ldap_value_len[i]->bv_val, 1);

                                        ldap_value_len[i]->bv_len, 1);
Then it seems to be OK

Michel Alexeline


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-28 02:08 UTC]
Fixed in CVS. Thanks!


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Feb 28 14:01:28 2024 UTC