/PHP-5.4/ext/mysqli/ |
H A D | mysqli_embedded.c | 55 arguments = safe_emalloc(sizeof(char *), argc + 1, 0); in PHP_FUNCTION() 76 groups = safe_emalloc(sizeof(char *), zend_hash_num_elements(HASH_OF(grps)) + 1, 0); in PHP_FUNCTION() 94 groups = safe_emalloc(sizeof(char *), 1, 0); in PHP_FUNCTION()
|
/PHP-5.4/ext/bcmath/libbcmath/src/ |
H A D | num2str.c | 54 str = (char *) safe_emalloc (1, num->n_len + num->n_scale, 2 + signch); 56 str = (char *) safe_emalloc (1, num->n_len, 1 + signch);
|
H A D | div.c | 130 num1 = (unsigned char *) safe_emalloc (1, n1->n_len+n1->n_scale, extra+2); in bc_divide() 136 num2 = (unsigned char *) safe_emalloc (1, len2, 1); in bc_divide() 167 mval = (unsigned char *) safe_emalloc (1, len2, 1); in bc_divide()
|
/PHP-5.4/ext/com_dotnet/ |
H A D | com_olechar.c | 48 olestring = (OLECHAR*)safe_emalloc(string_len, sizeof(OLECHAR), 0); in php_com_string_to_olestring() 83 string = (char*)safe_emalloc(length, sizeof(char), 0); in php_com_olestring_to_string()
|
H A D | com_saproxy.c | 110 args = safe_emalloc(proxy->dimensions + 1, sizeof(zval *), 0); in saproxy_read_dimension() 170 indices = safe_emalloc(dims, sizeof(LONG), 0); in saproxy_read_dimension() 222 zval **args = safe_emalloc(proxy->dimensions + 2, sizeof(zval *), 0); in saproxy_write_dimension() 245 indices = safe_emalloc(dims, sizeof(LONG), 0); in saproxy_write_dimension() 429 cloneproxy->indices = safe_emalloc(cloneproxy->dimensions, sizeof(zval *), 0); in saproxy_clone() 453 proxy->indices = safe_emalloc(proxy->dimensions, sizeof(zval *), 0); in php_com_saproxy_create() 573 I->indices = safe_emalloc(proxy->dimensions + 1, sizeof(LONG), 0); in php_com_saproxy_iter_get()
|
/PHP-5.4/ext/standard/ |
H A D | levenshtein.c | 45 p1 = safe_emalloc((l2 + 1), sizeof(int), 0); in reference_levdist() 46 p2 = safe_emalloc((l2 + 1), sizeof(int), 0); in reference_levdist()
|
H A D | base64.c | 69 result = (unsigned char *) safe_emalloc((length + 2) / 3, 4 * sizeof(char), 1); in php_base64_encode() 150 result = (unsigned char *)safe_emalloc(length, 1, 1); in php_base64_decode_ex()
|
H A D | uuencode.c | 74 p = *dest = safe_emalloc((size_t) ceil(src_len * 1.38), 1, 46); in php_uuencode() 132 p = *dest = safe_emalloc((size_t) ceil(src_len * 0.75), 1, 1); in php_uudecode()
|
H A D | metaphone.c | 189 *phoned_word = safe_emalloc(sizeof(char), word_len, 1); in metaphone() 192 *phoned_word = safe_emalloc(sizeof(char), max_phonemes, 1); in metaphone()
|
H A D | scanf.c | 170 cset->chars = (char *) safe_emalloc(sizeof(char), (end - format - 1), 0); in BuildCharSet() 172 cset->ranges = (struct Range *) safe_emalloc(sizeof(struct Range), nranges, 0); in BuildCharSet() 327 nassign = (int*)safe_emalloc(sizeof(int), numVars, 0); in ValidateFormat() 502 nassign = (void *)safe_emalloc(nspace, sizeof(int), 0); in ValidateFormat()
|
H A D | exec.c | 254 cmd = safe_emalloc(2, l, 1); in php_escape_shell_cmd() 345 cmd = safe_emalloc(4, l, 3); /* worst case */ in php_escape_shell_arg()
|
/PHP-5.4/ext/intl/ |
H A D | intl_common.h | 31 # define eumalloc(size) (UChar*)safe_emalloc(size, sizeof(UChar), 0)
|
/PHP-5.4/ext/filter/ |
H A D | callback_filter.c | 36 args = safe_emalloc(sizeof(zval **), 1, 0); in php_filter_callback()
|
H A D | sanitizing_filters.c | 90 p = str = (unsigned char *) safe_emalloc(3, Z_STRLEN_P(value), 1); in php_filter_encode_url() 121 buf = safe_emalloc(1, Z_STRLEN_P(value) + 1, 1); in php_filter_strip() 162 buf = safe_emalloc(1, Z_STRLEN_P(value) + 1, 1); in filter_map_apply()
|
/PHP-5.4/ext/dba/ |
H A D | dba_cdb.c | 166 new_entry = safe_emalloc(len, 1, 1); in DBA_FETCH_FUNC() 271 key = safe_emalloc(klen, 1, 1); in DBA_FIRSTKEY_FUNC() 303 key = safe_emalloc(klen, 1, 1); in DBA_NEXTKEY_FUNC()
|
/PHP-5.4/ext/ereg/ |
H A D | ereg.c | 258 buf = (char *)safe_emalloc(buf_len, sizeof(char), 0); in php_ereg_eprint() 268 message = (char *)safe_emalloc((buf_len + len + 2), sizeof(char), 0); in php_ereg_eprint() 438 buf = safe_emalloc(buf_len, sizeof(char), 0); in php_ereg_replace() 514 nbuf = safe_emalloc(buf_len, sizeof(char), 0); in php_ereg_replace() 529 nbuf = safe_emalloc(buf_len, sizeof(char), 0); in php_ereg_replace() 742 tmp = safe_emalloc(string_len, 4, 1); in PHP_FUNCTION()
|
/PHP-5.4/ext/gd/libgd/ |
H A D | gd_color.c | 36 buf = (unsigned long *)safe_emalloc(sizeof(unsigned long), 5 * im2->colorsTotal, 0); in gdImageColorMatch()
|
H A D | wbmp.c | 128 if ((wbmp->bitmap = (int *) safe_emalloc(sizeof(int), width * height, 0)) == NULL) in createwbmp() 195 …if ((wbmp->bitmap = (int *) safe_emalloc((size_t)wbmp->width * wbmp->height, sizeof(int), 0)) == N… in readwbmp()
|
H A D | gd_png.c | 322 image_data = (png_bytep) safe_emalloc(rowbytes, height, 0); in gdImageCreateFromPngCtx() 324 row_pointers = (png_bytepp) safe_emalloc(height, sizeof(png_bytep), 0); in gdImageCreateFromPngCtx() 688 row_pointers = safe_emalloc(sizeof(png_bytep), height, 0); in gdImagePngCtxEx() 691 *prow_pointers = (png_bytep) safe_emalloc(width, channels, 0); in gdImagePngCtxEx() 729 row_pointers = safe_emalloc(height, sizeof(png_bytep), 0); in gdImagePngCtxEx()
|
/PHP-5.4/ext/sysvmsg/ |
H A D | sysvmsg.c | 343 messagebuffer = (struct php_msgbuf *) safe_emalloc(maxsize, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION() 418 messagebuffer = safe_emalloc(msg_var.len, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION() 444 messagebuffer = safe_emalloc(message_len, 1, sizeof(struct php_msgbuf)); in PHP_FUNCTION()
|
/PHP-5.4/ext/oci8/ |
H A D | oci8_statement.c | 676 buf = outcol->data = (text *) safe_emalloc(1, outcol->storage_size4, 0); in php_oci_statement_execute() 1527 bind->array.elements = (text *)safe_emalloc(max_table_length * (maxlength + 1), sizeof(text), 0); in php_oci_bind_array_helper_string() 1532 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_string() 1534 bind->array.indicators = safe_emalloc(max_table_length, sizeof(sb2), 0); in php_oci_bind_array_helper_string() 1585 bind->array.elements = (ub4 *)safe_emalloc(max_table_length, sizeof(ub4), 0); in php_oci_bind_array_helper_number() 1589 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_number() 1623 bind->array.elements = (double *)safe_emalloc(max_table_length, sizeof(double), 0); in php_oci_bind_array_helper_double() 1627 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_double() 1661 bind->array.elements = (OCIDate *)safe_emalloc(max_table_length, sizeof(OCIDate), 0); in php_oci_bind_array_helper_date() 1665 bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0); in php_oci_bind_array_helper_date()
|
/PHP-5.4/ext/phar/ |
H A D | dirstream.c | 239 entry = (char *) safe_emalloc(found - str_key, 1, 1); in phar_make_dirstream() 244 entry = (char *) safe_emalloc(keylen, 1, 1); in phar_make_dirstream() 276 entry = (char *) safe_emalloc(found - save + dirlen, 1, 1); in phar_make_dirstream() 283 entry = (char *) safe_emalloc(keylen - dirlen, 1, 1); in phar_make_dirstream()
|
/PHP-5.4/ext/interbase/ |
H A D | ibase_events.c | 335 event = (ibase_event *) safe_emalloc(sizeof(ibase_event), 1, 0); in PHP_FUNCTION() 341 event->events = (char **) safe_emalloc(sizeof(char *),ZEND_NUM_ARGS()-i,0); in PHP_FUNCTION()
|
/PHP-5.4/ext/intl/msgformat/ |
H A D | msgformat_format.c | 54 fargs = safe_emalloc(count, sizeof(zval *), 0); in msgfmt_do_format()
|
/PHP-5.4/ext/pcre/ |
H A D | php_pcre.c | 642 offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); in php_pcre_match_impl() 646 match_sets = (zval **)safe_emalloc(num_subpats, sizeof(zval *), 0); in php_pcre_match_impl() 1074 offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); in php_pcre_replace_impl() 1077 result = safe_emalloc(alloc_len, sizeof(char), 0); in php_pcre_replace_impl() 1205 new_buf = safe_emalloc(alloc_len, sizeof(char), 0); in php_pcre_replace_impl() 1526 offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); in php_pcre_split_impl() 1684 out_str = safe_emalloc(4, in_str_len, 1); in PHP_FUNCTION() 1790 offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); in php_pcre_grep_impl()
|