Lines Matching refs:safe_emalloc

513 					ldap_attrs = safe_emalloc((num_attribs+1), sizeof(char *), 0);  in _php_ldap_control_from_array()
514 tmpstrings1 = safe_emalloc(num_attribs, sizeof(zend_string*), 0); in _php_ldap_control_from_array()
554 sort_keys = safe_emalloc((num_keys+1), sizeof(LDAPSortKey*), 0); in _php_ldap_control_from_array()
555 tmpstrings1 = safe_emalloc(num_keys, sizeof(zend_string*), 0); in _php_ldap_control_from_array()
556 tmpstrings2 = safe_emalloc(num_keys, sizeof(zend_string*), 0); in _php_ldap_control_from_array()
759 ctrls = safe_emalloc((1 + ncontrols), sizeof(*ctrls), 0); in _php_ldap_controls_from_array()
1398 ldap_attrs = safe_emalloc((num_attribs+1), sizeof(char *), 0); in php_ldap_do_search()
1468 lds = safe_emalloc(nlinks, sizeof(ldap_linkdata), 0); in php_ldap_do_search()
1469 rcs = safe_emalloc(nlinks, sizeof(*rcs), 0); in php_ldap_do_search()
2133 ldap_mods = safe_emalloc((num_attribs+1), sizeof(LDAPMod *), 0); in php_ldap_do_modify()
2134 num_berval = safe_emalloc(num_attribs, sizeof(int), 0); in php_ldap_do_modify()
2171 ldap_mods[i]->mod_bvalues = safe_emalloc((num_values + 1), sizeof(struct berval *), 0); in php_ldap_do_modify()
2666 ldap_mods = safe_emalloc((num_mods+1), sizeof(LDAPMod *), 0); in PHP_FUNCTION()
2671 ldap_mods[i] = safe_emalloc(1, sizeof(LDAPMod), 0); in PHP_FUNCTION()
2712 ldap_mods[i]->mod_bvalues = safe_emalloc((num_modvals+1), sizeof(struct berval *), 0); in PHP_FUNCTION()
2727 ldap_mods[i]->mod_bvalues[j] = safe_emalloc(1, sizeof(struct berval), 0); in PHP_FUNCTION()