|  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: alexel at dr15 dot cnrs dot fr
New email:
PHP Version: OS:


 [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-2022 The PHP Group
All rights reserved.
Last updated: Tue Oct 04 02:05:53 2022 UTC