Home
last modified time | relevance | path

Searched refs:emalloc (Results 76 – 100 of 193) sorted by relevance

12345678

/PHP-7.4/ext/phar/
H A Dutil.c427 *ret = (phar_entry_data *) emalloc(sizeof(phar_entry_data)); in phar_get_entry_data()
476 *ret = (phar_entry_data *) emalloc(sizeof(phar_entry_data)); in phar_get_entry_data()
546 ret = (phar_entry_data *) emalloc(sizeof(phar_entry_data)); in phar_get_or_create_entry_data()
1842 sigbuf = emalloc(siglen + 1); in phar_create_signature()
1992 phar_entry_info *info = emalloc(sizeof(phar_entry_info)); in phar_manifest_copy_ctor()
2005 phar = (phar_archive_data *) emalloc(sizeof(phar_archive_data)); in phar_copy_cached_phar()
/PHP-7.4/sapi/cgi/
H A Dcgi_main.c549 valw = emalloc((size + 1) * sizeof(wchar_t)); in cgi_getenv_win32()
903 path = emalloc(path_len + 2);
1350 path_translated = (char *) emalloc(path_translated_len + 1);
1368 char *path_translated = (char *) emalloc(path_translated_len + 1);
1618 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
1632 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size));
/PHP-7.4/ext/fileinfo/libmagic/
H A Dmagic.c240 if ((buf = CAST(unsigned char *, emalloc(ms->bytes_max + SLOP))) == NULL) in file_or_stream()
H A Dascmagic.c147 if ((utf8_buf = CAST(unsigned char *, emalloc(mlen))) == NULL) { in file_ascmagic_with_encoding()
H A Dapprentice.c397 if ((ml = CAST(struct mlist *, emalloc(sizeof(*ml)))) == NULL) in add_mlist()
505 if ((ms->c.li = CAST(struct level_info *, emalloc(len))) == NULL) in file_ms_alloc()
1254 if ((*ma = CAST(struct magic *, emalloc(slen))) == NULL) { in coalesce_entries()
1836 if ((m = CAST(struct magic *, emalloc(len))) == NULL) { in parse()
3037 map->p = CAST(void *, emalloc(map->len)); in apprentice_map()
3072 map->p = emalloc(sizeof(php_magic_database)); in apprentice_map()
/PHP-7.4/Zend/
H A Dzend_llist.c205 elements = (zend_llist_element **) emalloc(l->count * sizeof(zend_llist_element *)); in zend_llist_sort()
H A Dzend_objects.c196 zend_object *object = emalloc(sizeof(zend_object) + zend_object_properties_size(ce)); in zend_objects_new()
H A Dzend_ini_parser.y203 error_buf = (char *) emalloc(error_buf_len); in ini_error()
/PHP-7.4/ext/zlib/
H A Dzlib.c163 output_context->out.data = emalloc(output_context->out.size); in php_zlib_output_handler_ex()
762 *dict = emalloc(ZSTR_LEN(str)); in zlib_create_dictionary_string()
773 zend_string **strings = emalloc(sizeof(zend_string *) * zend_hash_num_elements(dictionary)); in zlib_create_dictionary_string()
807 dictptr = *dict = emalloc(*dictlen); in zlib_create_dictionary_string()
/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_main.c567 php_self = emalloc(php_self_len + 1); in sapi_cgi_register_variables()
725 path = emalloc(path_len + 2); in sapi_cgi_activate()
1205 path_translated = (char *) emalloc(path_translated_len + 1); in init_request_info()
1224 path_translated = (char *) emalloc(path_translated_len + 1); in init_request_info()
/PHP-7.4/ext/snmp/
H A Dsnmp.c556 dbuf = (char *)emalloc(val_len + 1); in php_snmp_getvalue()
564 dbuf = (char *)emalloc(val_len + 1); in php_snmp_getvalue()
953 objid_query->vars = (snmpobjarg *)emalloc(sizeof(snmpobjarg)); in php_snmp_parse_oid()
1082 *session_p = (php_snmp_session *)emalloc(sizeof(php_snmp_session)); in netsnmp_session_init()
1091 session->peername = emalloc(MAX_NAME_LEN); in netsnmp_session_init()
1282 u_char *ebuf = (u_char *) emalloc(ebuf_len); in netsnmp_session_set_contextEngineID()
/PHP-7.4/main/
H A Dphp_ini.c490 php_ini_search_path = (char *) emalloc(search_path_size); in php_init_config()
541 default_location = (char *) emalloc(MAXPATHLEN + 1); in php_init_config()
/PHP-7.4/main/streams/
H A Dmemory.c60 tmp = emalloc(ms->fpos + count); in php_stream_memory_write()
305 self = emalloc(sizeof(*self)); in _php_stream_memory_create()
/PHP-7.4/ext/libxml/
H A Dlibxml.c1052 LIBXML(error_list) = (zend_llist *) emalloc(sizeof(zend_llist)); in PHP_FUNCTION()
1268 object->node = emalloc(sizeof(php_libxml_node_ptr)); in php_libxml_increment_node_ptr()
1308 object->document = emalloc(sizeof(php_libxml_ref_obj)); in php_libxml_increment_doc_ref()
/PHP-7.4/ext/sysvshm/
H A Dsysvshm.c177 shm_list_ptr = (sysvshm_shm *) emalloc(sizeof(sysvshm_shm)); in PHP_FUNCTION()
/PHP-7.4/ext/standard/
H A Dexec.c122 buf = (char *) emalloc(EXEC_INPUT_BUF); in php_exec()
H A Dvar_unserializer.re61 d = emalloc(sizeof(struct php_unserialize_data));
121 var_hash = emalloc(sizeof(var_entries));
154 var_hash = emalloc(sizeof(var_dtor_entries));
573 (*var_hash)->ref_props = emalloc(sizeof(HashTable));
H A Dhttp_fopen_wrapper.c526 char *scratch = emalloc(scratch_len); in php_stream_url_wrap_http_ex()
599 ua = emalloc(ua_len + 1); in php_stream_url_wrap_http_ex()
/PHP-7.4/ext/pdo_oci/
H A Doci_driver.c369 *quoted = emalloc(*quotedlen+1); in oci_handle_quoter()
379 *quoted = c = emalloc(*quotedlen+1); in oci_handle_quoter()
/PHP-7.4/ext/fileinfo/
H A Dlibmagic.patch120 + if ((ml = CAST(struct mlist *, emalloc(sizeof(*ml)))) == NULL)
200 + if ((ms->c.li = CAST(struct level_info *, emalloc(len))) == NULL)
437 + if ((*ma = CAST(struct magic *, emalloc(slen))) == NULL) {
559 + if ((m = CAST(struct magic *, emalloc(len))) == NULL) {
756 + map->p = CAST(void *, emalloc(map->len));
800 + map->p = emalloc(sizeof(php_magic_database));
992 + if ((utf8_buf = CAST(unsigned char *, emalloc(mlen))) == NULL) {
1049 + if ((b->ebuf = emalloc(b->elen)) == NULL)
1122 +#define CDF_MALLOC(n) emalloc(n)
2452 + emalloc(len) :
[all …]
/PHP-7.4/ext/ffi/
H A Dffi.c246 cdata = emalloc(sizeof(zend_ffi_cdata)); in zend_ffi_cdata_new()
452 cdata->ptr = emalloc(type->size); in zend_ffi_cdata_to_zval_slow_ret()
977 FFI_G(callbacks) = emalloc(sizeof(HashTable)); in zend_ffi_create_callback()
2089 ctype = emalloc(sizeof(zend_ffi_ctype)); in zend_ffi_ctype_new()
2176 ffi = emalloc(sizeof(zend_ffi)); in zend_ffi_new()
2353 new_cdata->ptr = emalloc(type->size); in zend_ffi_cdata_clone_obj()
2394 cdata = emalloc(sizeof(zend_ffi_cdata)); in zend_ffi_read_var()
3165 code = emalloc(code_size + 1); in zend_ffi_load()
3873 cdata->ptr = emalloc(type->size); in ZEND_METHOD()
4110 new_type = emalloc(sizeof(zend_ffi_type)); in ZEND_METHOD()
[all …]
/PHP-7.4/ext/com_dotnet/
H A Dcom_extension.c219 typelib_name_buffer = (char *) emalloc(sizeof(char)*1024); in ZEND_GET_MODULE()
/PHP-7.4/ext/sysvmsg/
H A Dsysvmsg.c281 mq = (sysvmsg_queue_t *) emalloc(sizeof(sysvmsg_queue_t)); in PHP_FUNCTION()
/PHP-7.4/ext/pdo_firebird/
H A Dfirebird_statement.c258 emalloc((len) ? (len * sizeof(type)) : ((*(unsigned long*)lenvar) = sizeof(type))))
576 var->sqlind = (void*)emalloc(var->sqllen + 2*sizeof(short)); in firebird_stmt_param_hook()
/PHP-7.4/ext/odbc/
H A Dphp_odbc.c979 result->values[i].value = (char *)emalloc(27); in odbc_bindcols()
1046 result->values[i].value = (char *)emalloc(displaysize + 1); in odbc_bindcols()
1532 cursorname = emalloc(max_len + 1); in PHP_FUNCTION()
1798 buf = emalloc(result->longreadlen + 1); in php_odbc_fetch_hash()
1963 buf = emalloc(result->longreadlen + 1); in PHP_FUNCTION()
2268 field = emalloc(fieldsize); in PHP_FUNCTION()
2384 buf = emalloc(result->longreadlen); in PHP_FUNCTION()
2544 ldb = (char*) emalloc(ldb_len); in odbc_sqlconnect()

Completed in 127 milliseconds

12345678