Browse Source

Fixed bug #26235 (yp_first/yp_next do not specify correct key length).

PEAR_1_4DEV
Ilia Alshanetsky 23 years ago
parent
commit
64bc9176e1
  1. 4
      ext/yp/yp.c

4
ext/yp/yp.c

@ -182,7 +182,7 @@ PHP_FUNCTION(yp_first)
RETURN_FALSE;
}
array_init(return_value);
add_assoc_stringl_ex(return_value,outkey,outkeylen,outval,outvallen,1);
add_assoc_stringl_ex(return_value,outkey,outkeylen+1,outval,outvallen,1);
/* Deprecated */
add_assoc_stringl(return_value,"key",outkey,outkeylen,1);
@ -212,7 +212,7 @@ PHP_FUNCTION(yp_next)
}
array_init(return_value);
add_assoc_stringl_ex(return_value,outkey,outkeylen,outval,outvallen,1);
add_assoc_stringl_ex(return_value,outkey,outkeylen+1,outval,outvallen,1);
}
/* }}} */

Loading…
Cancel
Save