Home
last modified time | relevance | path

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

123

/PHP-8.1/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.1/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.1/ext/gd/libgd/
H A Dgdhelpers.h20 #define gdPMalloc(ptr) pemalloc(ptr, 1)
/PHP-8.1/Zend/
H A Dzend_attributes.c213 *attributes = pemalloc(sizeof(HashTable), persistent); in zend_add_attribute()
217 zend_attribute *attr = pemalloc(ZEND_ATTRIBUTE_SIZE(argc), persistent); in zend_add_attribute()
255 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.h706 Z_PTR_P(zv) = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_add_mem()
719 Z_PTR_P(zv) = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_add_new_mem()
732 Z_PTR_P(zv) = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_str_add_mem()
745 Z_PTR_P(zv) = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_str_add_new_mem()
756 p = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_update_mem()
765 p = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_str_update_mem()
804 Z_PTR_P(zv) = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_index_add_mem()
829 p = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_index_update_mem()
840 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.c147 str->c = pemalloc(str->a + 1, 1); in _smart_string_alloc_persistent()
H A Dzend_constants.c65 Z_PTR_P(zv) = pemalloc(sizeof(zend_constant), 1); in copy_zend_constant()
554 zend_constant *copy = pemalloc(sizeof(zend_constant), ZEND_CONSTANT_FLAGS(c) & CONST_PERSISTENT); in zend_hash_add_constant()
H A Dzend_enum.c400 ce->backed_enum_table = pemalloc(sizeof(HashTable), 1); in zend_register_internal_enum()
423 char *p = pemalloc(size, 1); in create_enum_case_ast()
/PHP-8.1/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.1/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.c377 = pemalloc(sizeof(browscap_entry), persistent); in php_browscap_parser_cb()
417 browdata->htab = pemalloc(sizeof *browdata->htab, persistent); in browscap_read_file()
423 browdata->kv = pemalloc(sizeof(browscap_kv) * browdata->kv_size, persistent); in browscap_read_file()
/PHP-8.1/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.1/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.1/sapi/cli/
H A Dphp_cli_server.c973 php_cli_server_chunk *chunk = pemalloc(sizeof(php_cli_server_chunk), 1); in php_cli_server_chunk_immortal_new()
984 php_cli_server_chunk *chunk = pemalloc(sizeof(php_cli_server_chunk), 1); in php_cli_server_chunk_heap_new()
996 php_cli_server_chunk *chunk = pemalloc(sizeof(php_cli_server_chunk) + len, 1); in php_cli_server_chunk_heap_new_self_contained()
1258 sa = pemalloc(sizeof(struct sockaddr_in6), 1); in php_network_listen_socket()
1265 sa = pemalloc(sizeof(struct sockaddr_in), 1); in php_network_listen_socket()
1681 char* field = pemalloc(new_length + 1, 1); in php_cli_server_client_read_request_on_header_field()
1729 client->current_header_value = pemalloc(1, 1); in php_cli_server_client_read_request_on_headers_complete()
1745 client->request.content = pemalloc(parser->content_length, 1); in php_cli_server_client_read_request_on_body()
2604 struct sockaddr *sa = pemalloc(server->socklen, 1); in php_cli_server_do_event_for_each_fd_callback()
2622 client = pemalloc(sizeof(php_cli_server_client), 1); in php_cli_server_do_event_for_each_fd_callback()

Completed in 52 milliseconds

123