Lines Matching refs:safe_emalloc
735 ldap_attrs = safe_emalloc((num_attribs+1), sizeof(char *), 0); in php_ldap_do_search()
797 lds = safe_emalloc(nlinks, sizeof(ldap_linkdata), 0); in php_ldap_do_search()
798 rcs = safe_emalloc(nlinks, sizeof(*rcs), 0); in php_ldap_do_search()
1443 ldap_mods = safe_emalloc((num_attribs+1), sizeof(LDAPMod *), 0); in php_ldap_do_modify()
1444 num_berval = safe_emalloc(num_attribs, sizeof(int), 0); in php_ldap_do_modify()
1487 ldap_mods[i]->mod_bvalues = safe_emalloc((num_values + 1), sizeof(struct berval *), 0); in php_ldap_do_modify()
1846 ldap_mods = safe_emalloc((num_mods+1), sizeof(LDAPMod *), 0); in PHP_FUNCTION()
1851 ldap_mods[i] = safe_emalloc(1, sizeof(LDAPMod), 0); in PHP_FUNCTION()
1889 ldap_mods[i]->mod_bvalues = safe_emalloc((num_modvals+1), sizeof(struct berval *), 0); in PHP_FUNCTION()
1898 ldap_mods[i]->mod_bvalues[j] = safe_emalloc(1, sizeof(struct berval), 0); in PHP_FUNCTION()
2335 ctrls = safe_emalloc((1 + ncontrols), sizeof(*ctrls), 0); in PHP_FUNCTION()