Home
last modified time | relevance | path

Searched refs:pemalloc (Results 26 – 50 of 62) sorted by relevance

123

/PHP-7.4/docs/
H A Dstreams.md127 is allocated using `pemalloc()`. You need to call `pefree()` to release the
303 of a request (it uses pemalloc),
331 it, allocate it (use pemalloc with the persistent flag set appropriately), and
342 struct my_state * state = pemalloc(sizeof(struct my_state), persistent);
/PHP-7.4/Zend/
H A Dzend_ini.c146 zend_ini_entry *new_entry = pemalloc(sizeof(zend_ini_entry), 1); in copy_ini_entry()
229 p = pemalloc(sizeof(zend_ini_entry), 1); in zend_register_ini_entries()
H A Dzend_inheritance.c46 zend_property_info* new_property_info = pemalloc(sizeof(zend_property_info), 1); in zend_duplicate_property_info_internal()
62 new_function = pemalloc(sizeof(zend_internal_function), 1); in zend_duplicate_internal_function()
1070 c = pemalloc(sizeof(zend_class_constant), 1); in do_inherit_class_constant()
1092 ce->properties_info_table = table = pemalloc(size, 1); in zend_build_properties_info_table()
1167 …zval *table = pemalloc(sizeof(zval) * (ce->default_properties_count + parent_ce->default_propertie… in zend_do_inheritance_ex()
1180 …end = pemalloc(sizeof(zval) * parent_ce->default_properties_count, ce->type == ZEND_INTERNAL_CLASS… in zend_do_inheritance_ex()
1214 …zval *table = pemalloc(sizeof(zval) * (ce->default_static_members_count + parent_ce->default_stati… in zend_do_inheritance_ex()
1227 …end = pemalloc(sizeof(zval) * parent_ce->default_static_members_count, ce->type == ZEND_INTERNAL_C… in zend_do_inheritance_ex()
1374 ct = pemalloc(sizeof(zend_class_constant), 1); in do_inherit_iface_constant()
H A Dzend_string.c107 …zend_known_strings = pemalloc(sizeof(zend_string*) * ((sizeof(known_strings) / sizeof(known_string… in zend_interned_strings_init()
H A Dzend_hash.c129 data = pemalloc(HT_SIZE_EX(ht->nTableSize, HT_MIN_MASK), 1); in zend_hash_real_init_packed_ex()
147 data = pemalloc(HT_SIZE_EX(nSize, HT_SIZE_TO_MASK(nSize)), 1); in zend_hash_real_init_mixed_ex()
323 new_data = pemalloc(HT_SIZE_EX(nSize, HT_SIZE_TO_MASK(nSize)), GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_packed_to_hash()
337 new_data = pemalloc(HT_SIZE_EX(ht->nTableSize, HT_MIN_MASK), GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_to_packed()
369 …new_data = pemalloc(HT_SIZE_EX(nSize, HT_SIZE_TO_MASK(nSize)), GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_extend()
1160 …new_data = pemalloc(HT_SIZE_EX(nSize, HT_SIZE_TO_MASK(nSize)), GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_do_resize()
2525 …new_data = pemalloc(HT_SIZE_EX(ht->nTableSize, HT_MIN_MASK), (GC_FLAGS(ht) & IS_ARRAY_PERSISTENT)); in zend_hash_sort_ex()
H A Dzend_string.h136 …zend_string *ret = (zend_string *)pemalloc(ZEND_MM_ALIGNED_SIZE(_ZSTR_STRUCT_SIZE(len)), persisten… in zend_string_alloc()
H A Dzend_alloc.h193 #define pemalloc(size, persistent) ((persistent)?__zend_malloc(size):emalloc(size)) macro
H A Dzend_gc.c501 GC_G(buf) = (gc_root_buffer*) pemalloc(sizeof(gc_root_buffer) * GC_DEFAULT_BUF_SIZE, 1); in gc_enable()
/PHP-7.4/ext/standard/
H A Dassert.c68 ASSERTG(cb) = pemalloc(ZSTR_LEN(new_value) + 1, 1); in PHP_INI_MH()
H A Duser_filters.c518 pbuffer = pemalloc(buffer_len, php_stream_is_persistent(stream)); in PHP_FUNCTION()
H A Dproc_open.c1093 proc = (struct php_process_handle*)pemalloc(sizeof(struct php_process_handle), is_persistent); in PHP_FUNCTION()
1096 proc->pipes = pemalloc(sizeof(zend_resource *) * ndesc, is_persistent); in PHP_FUNCTION()
/PHP-7.4/ext/dba/
H A Ddba_lmdb.c88 info->dbf = pemalloc(sizeof(struct php_lmdb_info), info->flags & DBA_PERSISTENT); in DBA_OPEN_FUNC()
H A Ddba.c867 info = pemalloc(sizeof(dba_info), persistent); in php_dba_open()
/PHP-7.4/ext/iconv/
H A Diconv.c2594 self->to_charset = pemalloc(to_charset_len + 1, persistent); in php_iconv_stream_filter_ctor()
2596 self->from_charset = pemalloc(from_charset_len + 1, persistent); in php_iconv_stream_filter_ctor()
2639 out_buf = pemalloc(out_buf_size, persistent); in php_iconv_stream_filter_append_bucket()
2691 out_buf = pemalloc(out_buf_size, persistent); in php_iconv_stream_filter_append_bucket()
2759 out_buf = pemalloc(out_buf_size, persistent); in php_iconv_stream_filter_append_bucket()
2894 inst = pemalloc(sizeof(php_iconv_stream_filter), persistent); in php_iconv_stream_filter_factory_create()
/PHP-7.4/ext/ffi/
H A Dffi.c3725 ptr = pemalloc(type->size, flags & ZEND_FFI_FLAG_PERSISTENT); in ZEND_METHOD()
5635 FFI_G(symbols) = pemalloc(sizeof(HashTable), FFI_G(persistent));
5642 sym = pemalloc(sizeof(zend_ffi_symbol), FFI_G(persistent));
5717 field = pemalloc(sizeof(zend_ffi_field), FFI_G(persistent));
5864 field = pemalloc(sizeof(zend_ffi_field), FFI_G(persistent));
5998 type = pemalloc(sizeof(zend_ffi_type), FFI_G(persistent));
6092 type = pemalloc(sizeof(zend_ffi_type), FFI_G(persistent));
6168 *args = pemalloc(sizeof(HashTable), FFI_G(persistent));
6264 sym = pemalloc(sizeof(zend_ffi_symbol), FFI_G(persistent));
6280 sym = pemalloc(sizeof(zend_ffi_symbol), FFI_G(persistent));
[all …]
/PHP-7.4/ext/dba/libinifile/
H A Dinifile.c93 dba = pemalloc(sizeof(inifile), persistent); in inifile_alloc()
/PHP-7.4/ext/pdo/
H A Dpdo_dbh.c343 pdbh->persistent_id = pemalloc(plen + 1, 1); in PHP_METHOD()
1295 dbh->cls_methods[kind] = pemalloc(sizeof(HashTable), dbh->is_persistent); in pdo_hash_methods()
/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_main.c632 entry = pemalloc(sizeof(user_config_cache_entry), 1); in php_cgi_ini_activate_user_config()
634 entry->user_config = (HashTable *) pemalloc(sizeof(HashTable), 1); in php_cgi_ini_activate_user_config()
/PHP-7.4/main/streams/
H A Dxp_socket.c916 sock = pemalloc(sizeof(php_netstream_data_t), persistent_id ? 1 : 0); in php_stream_generic_socket_factory()
/PHP-7.4/sapi/cgi/
H A Dcgi_main.c792 new_entry = pemalloc(sizeof(user_config_cache_entry), 1);
794 new_entry->user_config = (HashTable *) pemalloc(sizeof(HashTable), 1);
/PHP-7.4/main/
H A Dnetwork.c1090 sock = pemalloc(sizeof(php_netstream_data_t), persistent_id ? 1 : 0);
/PHP-7.4/ext/openssl/
H A Dxp_ssl.c1163 sslsock->reneg = (void*)pemalloc(sizeof(php_openssl_handshake_bucket_t), in php_openssl_init_server_reneg_limit()
2666 sslsock = pemalloc(sizeof(php_openssl_netstream_data_t), persistent_id ? 1 : 0); in php_openssl_ssl_socket_factory()
/PHP-7.4/ext/pdo_pgsql/
H A Dpgsql_driver.c52 tmp = pemalloc(i + 1, persistent); in _pdo_pgsql_trim_message()
/PHP-7.4/ext/mbstring/
H A Dphp_mbregex.c97 zend_mb_regex_globals *pglobals = pemalloc( in php_mb_regex_globals_alloc()
/PHP-7.4/sapi/litespeed/
H A Dlsapi_main.c1010 ctx->entry = pemalloc(sizeof(user_config_cache_entry), 1); in lsapi_activate_user_ini_mk_user_config()

Completed in 213 milliseconds

123