1
0
mirror of https://github.com/php/php-src.git synced 2026-04-10 17:43:13 +02:00

Think have to 0-terminate mod_values strings, got trailing garbage,

this fixes bug #5001 I think.
This commit is contained in:
Stig Venaas
2000-06-13 19:35:56 +00:00
parent 727398b2d4
commit aa5c0ffcbf

View File

@@ -1151,6 +1151,7 @@ static void php_ldap_do_modify(INTERNAL_FUNCTION_PARAMETERS, int oper)
if ((num_values == 1) && ((*value)->type != IS_ARRAY)) {
convert_to_string_ex(value);
ldap_mods[i]->mod_values[0] = (*value)->value.str.val;
ldap_mods[i]->mod_values[0][(*value)->value.str.len] = '\0';
} else {
for(j=0; j<num_values; j++) {
zend_hash_index_find((*value)->value.ht,j, (void **) &ivalue);