PHP 4.0 Bug #5796: ldap_get_values_len fails when a value contains NULL characters

From: Date: Wed, 26 Jul 2000 14:26:03 +0000
Subject: PHP 4.0 Bug #5796: ldap_get_values_len fails when a value contains NULL characters
Groups: php.dev 
Request: Send a blank email to php-dev+get-26301@lists.php.net to get a copy of this message
From: alexel@dr15.cnrs.fr Operating system: linux PHP version: 4.0.1 PHP Bug Type: LDAP related Bug description: ldap_get_values_len fails when a value contains NULL characters 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); with add_next_index_stringl(return_value, ldap_value_len[i]->bv_val, ldap_value_len[i]->bv_len, 1); Then it seems to be OK Michel Alexeline

« previous php.dev (#26301) next »