Home
last modified time | relevance | path

Searched refs:pemalloc (Results 1 – 25 of 62) sorted by relevance

123

/PHP-8.0/sapi/phpdbg/
H A Dphpdbg_btree.c26 # undef pemalloc
28 # define pemalloc(size, persistent) malloc(size) macro
161 …phpdbg_btree_branch *memory = *branch = pemalloc((i + 2) * sizeof(phpdbg_btree_branch), tree->pers… in phpdbg_btree_insert_or_update()
/PHP-8.0/main/streams/
H A Dfilter.c76 bucket = (php_stream_bucket*)pemalloc(sizeof(php_stream_bucket), is_persistent); in php_stream_bucket_new()
81 bucket->buf = pemalloc(buflen, 1); in php_stream_bucket_new()
114 retval = (php_stream_bucket*)pemalloc(sizeof(php_stream_bucket), bucket->is_persistent); in php_stream_bucket_make_writeable()
117 retval->buf = pemalloc(retval->buflen, retval->is_persistent); in php_stream_bucket_make_writeable()
133 (*left)->buf = pemalloc(length, in->is_persistent); in php_stream_bucket_split()
141 (*right)->buf = pemalloc((*right)->buflen, in->is_persistent); in php_stream_bucket_split()
H A Dphp_streams_int.h32 # define pemalloc_rel_orig(size, persistent) pemalloc((size), (persistent))
/PHP-8.0/ext/gd/libgd/
H A Dgdhelpers.h20 #define gdPMalloc(ptr) pemalloc(ptr, 1)
/PHP-8.0/Zend/
H A Dzend_attributes.c207 *attributes = pemalloc(sizeof(HashTable), persistent); in zend_add_attribute()
211 zend_attribute *attr = pemalloc(ZEND_ATTRIBUTE_SIZE(argc), persistent); in zend_add_attribute()
249 internal_attr = pemalloc(sizeof(zend_internal_attribute), 1); in zend_internal_attribute_register()
H A Dzend_llist.c36 zend_llist_element *tmp = pemalloc(sizeof(zend_llist_element)+l->size-1, l->persistent); in zend_llist_add_element()
54 zend_llist_element *tmp = pemalloc(sizeof(zend_llist_element)+l->size-1, l->persistent); in zend_llist_prepend_element()
H A Dzend_hash.h688 Z_PTR_P(zv) = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_add_mem()
701 Z_PTR_P(zv) = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_add_new_mem()
714 Z_PTR_P(zv) = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_str_add_mem()
727 Z_PTR_P(zv) = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_str_add_new_mem()
738 p = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_update_mem()
747 p = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_str_update_mem()
786 Z_PTR_P(zv) = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_index_add_mem()
811 p = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_index_update_mem()
822 Z_PTR_P(zv) = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_next_index_insert_mem()
H A Dzend_multibyte.c53 *return_list = pemalloc(0, persistent); in dummy_encoding_list_parser()
H A Dzend_smart_str.c136 str->c = pemalloc(str->a + 1, 1); in _smart_string_alloc_persistent()
H A Dzend_inheritance.c43 ? zend_arena_alloc(&CG(arena), size) : pemalloc(size, persistent); in zend_type_copy_ctor()
59 zend_property_info* new_property_info = pemalloc(sizeof(zend_property_info), 1); in zend_duplicate_property_info_internal()
73 new_function = pemalloc(sizeof(zend_internal_function), 1); in zend_duplicate_internal_function()
1151 c = pemalloc(sizeof(zend_class_constant), 1); in do_inherit_class_constant()
1173 ce->properties_info_table = table = pemalloc(size, 1); in zend_build_properties_info_table()
1235 …zval *table = pemalloc(sizeof(zval) * (ce->default_properties_count + parent_ce->default_propertie… in zend_do_inheritance_ex()
1248 …end = pemalloc(sizeof(zval) * parent_ce->default_properties_count, ce->type == ZEND_INTERNAL_CLASS… in zend_do_inheritance_ex()
1282 …zval *table = pemalloc(sizeof(zval) * (ce->default_static_members_count + parent_ce->default_stati… in zend_do_inheritance_ex()
1295 …end = pemalloc(sizeof(zval) * parent_ce->default_static_members_count, ce->type == ZEND_INTERNAL_C… in zend_do_inheritance_ex()
1446 ct = pemalloc(sizeof(zend_class_constant), 1); in do_inherit_iface_constant()
H A Dzend.c592 func = pemalloc(sizeof(zend_internal_function), 1); in function_copy_ctor()
606 new_arg_info = pemalloc(sizeof(zend_arg_info) * num_args, 1); in function_copy_ctor()
611 zend_type_list *new_list = pemalloc(ZEND_TYPE_LIST_SIZE(old_list->num_types), 1); in function_copy_ctor()
649 zend_auto_global *new_ag = pemalloc(sizeof(zend_auto_global), 1); in auto_global_copy_ctor()
688 base = pemalloc(compiler_globals->map_ptr_size * sizeof(void*), 1); in compiler_globals_ctor()
947 ZEND_MAP_PTR_SET_REAL_BASE(CG(map_ptr_base), pemalloc(CG(map_ptr_size) * sizeof(void*), 1)); in zend_startup()
/PHP-8.0/ext/dba/
H A Ddba_flatfile.c40 info->dbf = pemalloc(sizeof(flatfile), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC()
H A Ddba_qdbm.c58 info->dbf = pemalloc(sizeof(dba_qdbm_data), info->flags & DBA_PERSISTENT); in DBA_OPEN_FUNC()
H A Ddba_db1.c77 dba = pemalloc(sizeof(*dba), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC()
H A Ddba_dbm.c81 info->dbf = pemalloc(sizeof(dba_dbm_data), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC()
H A Ddba_tcadb.c68 info->dbf = pemalloc(sizeof(dba_tcadb_data), info->flags & DBA_PERSISTENT); in DBA_OPEN_FUNC()
H A Ddba_db2.c78 info->dbf = pemalloc(sizeof(dba_db2_data), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC()
H A Ddba_gdbm.c59 info->dbf = pemalloc(sizeof(dba_gdbm_data), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC()
H A Ddba_db3.c100 data = pemalloc(sizeof(*data), info->flags&DBA_PERSISTENT);
H A Ddba_cdb.c98 cdb = pemalloc(sizeof(dba_cdb), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC()
/PHP-8.0/ext/standard/
H A Dfilters.c1095 *pretval = pemalloc(ZSTR_LEN(str) + 1, persistent); in php_conv_get_string_prop_ex()
1188 retval = pemalloc(sizeof(php_conv_base64_encode), persistent); in php_conv_open()
1205 retval = pemalloc(sizeof(php_conv_base64_decode), persistent); in php_conv_open()
1240 retval = pemalloc(sizeof(php_conv_qprint_encode), persistent); in php_conv_open()
1263 retval = pemalloc(sizeof(php_conv_qprint_decode), persistent); in php_conv_open()
1358 out_buf = pemalloc(out_buf_size, persistent); in strfilter_convert_append_bucket()
1411 out_buf = pemalloc(out_buf_size, persistent); in strfilter_convert_append_bucket()
1473 out_buf = pemalloc(out_buf_size, persistent); in strfilter_convert_append_bucket()
1594 inst = pemalloc(sizeof(php_convert_filter), persistent); in strfilter_convert_create()
H A Dbrowscap.c378 = pemalloc(sizeof(browscap_entry), persistent); in php_browscap_parser_cb()
420 browdata->htab = pemalloc(sizeof *browdata->htab, persistent); in browscap_read_file()
426 browdata->kv = pemalloc(sizeof(browscap_kv) * browdata->kv_size, persistent); in browscap_read_file()
/PHP-8.0/ext/zlib/
H A Dzlib_filter.c302 data->strm.next_in = data->inbuf = (Bytef *) pemalloc(data->inbuf_len, persistent); in php_zlib_filter_create()
309 data->strm.next_out = data->outbuf = (Bytef *) pemalloc(data->outbuf_len, persistent); in php_zlib_filter_create()
/PHP-8.0/ext/bz2/
H A Dbz2_filter.c328 data->strm.next_in = data->inbuf = (char *) pemalloc(data->inbuf_len, persistent); in php_bz2_filter_create()
330 data->strm.next_out = data->outbuf = (char *) pemalloc(data->outbuf_len, persistent); in php_bz2_filter_create()
/PHP-8.0/sapi/cli/
H A Dphp_cli_server.c958 php_cli_server_chunk *chunk = pemalloc(sizeof(php_cli_server_chunk), 1); in php_cli_server_chunk_immortal_new()
969 php_cli_server_chunk *chunk = pemalloc(sizeof(php_cli_server_chunk), 1); in php_cli_server_chunk_heap_new()
981 php_cli_server_chunk *chunk = pemalloc(sizeof(php_cli_server_chunk) + len, 1); in php_cli_server_chunk_heap_new_self_contained()
1243 sa = pemalloc(sizeof(struct sockaddr_in6), 1); in php_network_listen_socket()
1250 sa = pemalloc(sizeof(struct sockaddr_in), 1); in php_network_listen_socket()
1664 char* field = pemalloc(new_length + 1, 1); in php_cli_server_client_read_request_on_header_field()
1712 client->current_header_value = pemalloc(1, 1); in php_cli_server_client_read_request_on_headers_complete()
1728 client->request.content = pemalloc(parser->content_length, 1); in php_cli_server_client_read_request_on_body()
2589 struct sockaddr *sa = pemalloc(server->socklen, 1); in php_cli_server_do_event_for_each_fd_callback()
2607 client = pemalloc(sizeof(php_cli_server_client), 1); in php_cli_server_do_event_for_each_fd_callback()

Completed in 107 milliseconds

123