Lines Matching refs:safe_emalloc

409 					ldap_attrs = safe_emalloc((num_attribs+1), sizeof(char *), 0);  in _php_ldap_control_from_array()
410 tmpstrings1 = safe_emalloc(num_attribs, sizeof(zend_string*), 0); in _php_ldap_control_from_array()
450 sort_keys = safe_emalloc((num_keys+1), sizeof(LDAPSortKey*), 0); in _php_ldap_control_from_array()
451 tmpstrings1 = safe_emalloc(num_keys, sizeof(zend_string*), 0); in _php_ldap_control_from_array()
452 tmpstrings2 = safe_emalloc(num_keys, sizeof(zend_string*), 0); in _php_ldap_control_from_array()
655 ctrls = safe_emalloc((1 + ncontrols), sizeof(*ctrls), 0); in _php_ldap_controls_from_array()
1473 ldap_attrs = safe_emalloc((num_attribs+1), sizeof(char *), 0); in php_ldap_do_search()
1541 lds = safe_emalloc(nlinks, sizeof(ldap_linkdata), 0); in php_ldap_do_search()
1542 rcs = safe_emalloc(nlinks, sizeof(*rcs), 0); in php_ldap_do_search()
2227 ldap_mods = safe_emalloc((num_attribs+1), sizeof(LDAPMod *), 0); in php_ldap_do_modify()
2228 num_berval = safe_emalloc(num_attribs, sizeof(int), 0); in php_ldap_do_modify()
2271 ldap_mods[i]->mod_bvalues = safe_emalloc((num_values + 1), sizeof(struct berval *), 0); in php_ldap_do_modify()
2758 ldap_mods = safe_emalloc((num_mods+1), sizeof(LDAPMod *), 0); in PHP_FUNCTION()
2763 ldap_mods[i] = safe_emalloc(1, sizeof(LDAPMod), 0); in PHP_FUNCTION()
2804 ldap_mods[i]->mod_bvalues = safe_emalloc((num_modvals+1), sizeof(struct berval *), 0); in PHP_FUNCTION()
2819 ldap_mods[i]->mod_bvalues[j] = safe_emalloc(1, sizeof(struct berval), 0); in PHP_FUNCTION()