Home
last modified time | relevance | path

Searched refs:persistent (Results 1 – 25 of 146) sorted by relevance

123456

/PHP-8.2/ext/mysqlnd/
H A Dmysqlnd_driver.c105 DBG_INF_FMT("persistent=%u", persistent); in MYSQLND_METHOD()
112 mnd_pefree(new_object, persistent); in MYSQLND_METHOD()
115 new_object->persistent = persistent; in MYSQLND_METHOD()
128 data->persistent = persistent; in MYSQLND_METHOD()
169 new_object->persistent = to_be_cloned->persistent; in MYSQLND_METHOD()
227 DBG_INF_FMT("persistent=%u", persistent); in MYSQLND_METHOD()
230 pfc->persistent = pfc->data->persistent = persistent; in MYSQLND_METHOD()
249 DBG_INF_FMT("persistent=%u", persistent); in MYSQLND_METHOD()
252 vio->persistent = vio->data->persistent = persistent; in MYSQLND_METHOD()
270 DBG_INF_FMT("persistent=%u", persistent); in MYSQLND_METHOD()
[all …]
H A Dmysqlnd_alloc.c94 ret = pemalloc_rel(REAL_SIZE(size), persistent); in _mysqlnd_pemalloc()
136 ret = pecalloc_rel(nmemb, REAL_SIZE(size), persistent); in _mysqlnd_pecalloc()
246 pefree_rel(REAL_PTR(ptr), persistent); in _mysqlnd_pefree()
273 ret = pemalloc_rel(REAL_SIZE(length + 1), persistent); in _mysqlnd_pememdup()
304 ret = pemalloc_rel(REAL_SIZE(length + 1), persistent); in _mysqlnd_pestrndup()
376 return pemalloc_rel(size, persistent); in mysqlnd_zend_mm_pemalloc()
392 return pecalloc_rel(nmemb, size, persistent); in mysqlnd_zend_mm_pecalloc()
408 return perealloc_rel(ptr, new_size, persistent); in mysqlnd_zend_mm_perealloc()
424 pefree_rel(ptr, persistent); in mysqlnd_zend_mm_pefree()
432 char * dest = pemalloc_rel(length, persistent); in mysqlnd_zend_mm_pememdup()
[all …]
H A Dmysqlnd_alloc.h29 void * (*m_pemalloc)(size_t size, bool persistent MYSQLND_MEM_D);
31 void * (*m_pecalloc)(unsigned int nmemb, size_t size, bool persistent MYSQLND_MEM_D);
33 void * (*m_perealloc)(void *ptr, size_t new_size, bool persistent MYSQLND_MEM_D);
35 void (*m_pefree)(void *ptr, bool persistent MYSQLND_MEM_D);
36 char * (*m_pememdup)(const char * const ptr, size_t size, bool persistent MYSQLND_MEM_D);
37 char * (*m_pestrndup)(const char * const ptr, size_t size, bool persistent MYSQLND_MEM_D);
38 char * (*m_pestrdup)(const char * const ptr, bool persistent MYSQLND_MEM_D);
58 static inline MYSQLND_STRING mnd_dup_cstring(const MYSQLND_CSTRING str, const bool persistent) in mnd_dup_cstring() argument
60 const MYSQLND_STRING ret = {(char*) mnd_pemalloc(str.l + 1, persistent), str.l}; in mnd_dup_cstring()
88 mnd_pefree(buf->s, persistent); in mysqlnd_set_persistent_string()
[all …]
H A Dmysqlnd_statistics.c215 mysqlnd_stats_init(MYSQLND_STATS ** stats, const size_t statistic_count, const bool persistent) in mysqlnd_stats_init() argument
217 *stats = pecalloc(1, sizeof(MYSQLND_STATS), persistent); in mysqlnd_stats_init()
218 (*stats)->values = pecalloc(statistic_count, sizeof(uint64_t), persistent); in mysqlnd_stats_init()
229 mysqlnd_stats_end(MYSQLND_STATS * stats, const bool persistent) in mysqlnd_stats_end() argument
234 pefree(stats->values, persistent); in mysqlnd_stats_end()
236 pefree(stats, persistent); in mysqlnd_stats_end()
H A Dmysqlnd_vio.c139 if (persistent) { in MYSQLND_METHOD()
149 if (persistent) { in MYSQLND_METHOD()
201 if (persistent) { in MYSQLND_METHOD()
364 bool pers = net->persistent; in MYSQLND_METHOD()
373 bool pers = net->persistent; in MYSQLND_METHOD()
382 bool pers = net->persistent; in MYSQLND_METHOD()
391 bool pers = net->persistent; in MYSQLND_METHOD()
400 bool pers = net->persistent; in MYSQLND_METHOD()
409 bool pers = net->persistent; in MYSQLND_METHOD()
638 bool pers = net->persistent; in MYSQLND_METHOD()
[all …]
/PHP-8.2/Zend/
H A Dzend_smart_str.h46 if (persistent) { in END_EXTERN_C()
57 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_extend_ex()
70 zend_string_release_ex(str->s, persistent); in smart_str_free_ex()
94 str->s = zend_string_realloc(str->s, ZSTR_LEN(str->s), persistent); in smart_str_trim_to_size_ex()
108 smart_str_trim_to_size_ex(str, persistent); in smart_str_extract_ex()
123 size_t new_len = smart_str_alloc(dest, 1, persistent); in smart_str_appendc_ex()
129 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_appendl_ex()
135 smart_str_appendl_ex(dest, ZSTR_VAL(src), ZSTR_LEN(src), persistent); in smart_str_append_ex()
140 smart_str_append_ex(dest, src->s, persistent); in smart_str_append_smart_str_ex()
147 smart_str_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_str_append_long_ex()
[all …]
H A Dzend_smart_string.h54 static zend_always_inline size_t smart_string_alloc(smart_string *str, size_t len, bool persistent)… in smart_string_alloc() argument
56 if (persistent) { in smart_string_alloc()
65 static zend_always_inline void smart_string_free_ex(smart_string *str, bool persistent) { in smart_string_free_ex() argument
67 pefree(str->c, persistent); in smart_string_free_ex()
79 static zend_always_inline void smart_string_appendc_ex(smart_string *dest, char ch, bool persistent in smart_string_appendc_ex() argument
80 dest->len = smart_string_alloc(dest, 1, persistent); in smart_string_appendc_ex()
85 size_t new_len = smart_string_alloc(dest, len, persistent); in smart_string_appendl_ex()
91 …lways_inline void smart_string_append_long_ex(smart_string *dest, zend_long num, bool persistent) { in smart_string_append_long_ex() argument
94 smart_string_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_string_append_long_ex()
97 …_inline void smart_string_append_unsigned_ex(smart_string *dest, zend_ulong num, bool persistent) { in smart_string_append_unsigned_ex() argument
[all …]
H A Dzend_alloc.h188 #define pemalloc(size, persistent) ((persistent)?__zend_malloc(size):emalloc(size)) argument
190 #define pefree(ptr, persistent) ((persistent)?free(ptr):efree(ptr)) argument
192 if (persistent) { \
199 #define pecalloc(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size)):ecalloc((nme… argument
200 #define perealloc(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc((ptr)… argument
205 #define pestrdup(s, persistent) ((persistent)?__zend_strdup(s):estrdup(s)) argument
206 #define pestrndup(s, length, persistent) ((persistent)?zend_strndup((s),(length)):estrndup((s),(len… argument
208 #define pemalloc_rel(size, persistent) ((persistent)?__zend_malloc(size):emalloc_rel(size)) argument
209 #define pefree_rel(ptr, persistent) ((persistent)?free(ptr):efree_rel(ptr)) argument
211 #define perealloc_rel(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc_r… argument
[all …]
H A Dzend_string.h111 #define ZSTR_INIT_LITERAL(s, persistent) (zend_string_init((s), strlen(s), (persistent))) argument
150 static zend_always_inline zend_string *zend_string_alloc(size_t len, bool persistent) in zend_string_alloc() argument
174 zend_string *ret = zend_string_alloc(len, persistent); in zend_string_init()
205 return zend_string_init(ZSTR_VAL(s), ZSTR_LEN(s), persistent); in zend_string_dup()
215 return zend_string_init(ZSTR_VAL(s), ZSTR_LEN(s), persistent); in zend_string_separate()
234 ret = zend_string_alloc(len, persistent); in zend_string_realloc()
255 ret = zend_string_alloc(len, persistent); in zend_string_extend()
276 ret = zend_string_alloc(len, persistent); in zend_string_truncate()
296 ret = zend_string_safe_alloc(n, m, l, persistent); in zend_string_safe_realloc()
329 static zend_always_inline void zend_string_release_ex(zend_string *s, bool persistent) in zend_string_release_ex() argument
[all …]
H A Dzend_ptr_stack.c24 ZEND_API void zend_ptr_stack_init_ex(zend_ptr_stack *stack, bool persistent) in zend_ptr_stack_init_ex() argument
28 stack->persistent = persistent; in zend_ptr_stack_init_ex()
75 pefree(stack->elements, stack->persistent); in zend_ptr_stack_destroy()
106 pefree(stack->elements[i], stack->persistent); in zend_ptr_stack_clean()
H A Dzend_llist.c24 … void zend_llist_init(zend_llist *l, size_t size, llist_dtor_func_t dtor, unsigned char persistent) in zend_llist_init() argument
31 l->persistent = persistent; in zend_llist_init()
36 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()
84 pefree((current), (l)->persistent);\
111 pefree(current, l->persistent); in zend_llist_destroy()
147 pefree(old_tail, l->persistent); in zend_llist_remove_tail()
155 zend_llist_init(dst, src->size, src->dtor, src->persistent); in zend_llist_copy()
H A Dzend_attributes.c271 bool persistent = attr->flags & ZEND_ATTRIBUTE_PERSISTENT; in attr_free() local
280 if (persistent) { in attr_free()
287 pefree(attr, persistent); in attr_free()
292 bool persistent = flags & ZEND_ATTRIBUTE_PERSISTENT; in zend_add_attribute() local
294 *attributes = pemalloc(sizeof(HashTable), persistent); in zend_add_attribute()
295 zend_hash_init(*attributes, 8, NULL, attr_free, persistent); in zend_add_attribute()
298 zend_attribute *attr = pemalloc(ZEND_ATTRIBUTE_SIZE(argc), persistent); in zend_add_attribute()
300 if (persistent == ((GC_FLAGS(name) & IS_STR_PERSISTENT) != 0)) { in zend_add_attribute()
303 attr->name = zend_string_dup(name, persistent); in zend_add_attribute()
306 attr->lcname = zend_string_tolower_ex(attr->name, persistent); in zend_add_attribute()
/PHP-8.2/main/streams/
H A Dphp_streams_int.h29 #define pemalloc_rel_orig(size, persistent) ((persistent) ? malloc((size)) : emalloc_rel_orig((size… argument
30 #define perealloc_rel_orig(ptr, size, persistent) ((persistent) ? realloc((ptr), (size)) : erealloc… argument
32 # define pemalloc_rel_orig(size, persistent) pemalloc((size), (persistent)) argument
33 # define perealloc_rel_orig(ptr, size, persistent) perealloc((ptr), (size), (persistent)) argument
H A Dphp_stream_filter_api.h130 …eam_filter_alloc(const php_stream_filter_ops *fops, void *abstract, uint8_t persistent STREAMS_DC);
132 …ine php_stream_filter_alloc(fops, thisptr, persistent) _php_stream_filter_alloc((fops), (thisptr),… argument
133 …php_stream_filter_alloc_rel(fops, thisptr, persistent) _php_stream_filter_alloc((fops), (thisptr),… argument
141 …php_stream_filter *(*create_filter)(const char *filtername, zval *filterparams, uint8_t persistent
148 …m_filter *php_stream_filter_create(const char *filtername, zval *filterparams, uint8_t persistent);
/PHP-8.2/ext/bcmath/libbcmath/src/
H A Dinit.c43 _bc_new_num_ex (length, scale, persistent) in _bc_new_num_ex() argument
44 int length, scale, persistent; in _bc_new_num_ex()
48 temp = (bc_num) safe_pemalloc (1, sizeof(bc_struct)+length, scale, persistent);
54 temp->n_ptr = (char *) safe_pemalloc (1, length, scale, persistent);
65 _bc_free_num_ex (num, persistent) in _bc_free_num_ex() argument
67 int persistent;
74 pefree ((*num)->n_ptr, persistent);
75 pefree(*num, persistent);
/PHP-8.2/ext/standard/tests/streams/
H A Dgh8409.phpt2 GH-8409: Error in socket creation when error handler does not clean persistent connection
11 if (get_resource_type($res) === 'persistent stream') {
12 echo "ERROR: persistent stream not closed\n";
16 echo "OK: persistent stream closed\n";
25 OK: persistent stream closed
/PHP-8.2/ext/standard/
H A Dfilters.c204 int persistent; member
244 inst->persistent = persistent; in php_conv_base64_encode_ctor()
617 int persistent; member
853 inst->persistent = persistent; in php_conv_qprint_encode_ctor()
869 int persistent; member
1067 inst->persistent = persistent; in php_conv_qprint_decode_ctor()
1074 int persistent; member
1300 inst->persistent = persistent; in php_convert_filter_ctor()
1691 data->persistent = persistent; in consumed_filter_create()
1722 int persistent; member
[all …]
H A Dbrowscap.c230 if (persistent) { in browscap_intern_str()
253 if (persistent) { in browscap_intern_str_ci()
304 int persistent = GC_FLAGS(bdata->htab) & IS_ARRAY_PERSISTENT; in php_browscap_parser_cb() local
349 browscap_add_kv(bdata, new_key, new_value, persistent); in php_browscap_parser_cb()
367 if (persistent) { in php_browscap_parser_cb()
377 = pemalloc(sizeof(browscap_entry), persistent); in php_browscap_parser_cb()
419 persistent ? browscap_entry_dtor_persistent : browscap_entry_dtor, persistent); in browscap_read_file()
431 zend_hash_init(&ctx.str_interned, 8, NULL, NULL, persistent); in browscap_read_file()
433 zend_parse_ini_file(&fh, persistent, ZEND_INI_SCANNER_RAW, in browscap_read_file()
463 pefree(bdata->htab, persistent); in browscap_bdata_dtor()
[all …]
/PHP-8.2/ext/zlib/
H A Dzlib_filter.c29 int persistent; member
153 pefree(data->inbuf, data->persistent); in php_zlib_inflate_dtor()
154 pefree(data->outbuf, data->persistent); in php_zlib_inflate_dtor()
155 pefree(data, data->persistent); in php_zlib_inflate_dtor()
267 pefree(data->inbuf, data->persistent); in php_zlib_deflate_dtor()
268 pefree(data->outbuf, data->persistent); in php_zlib_deflate_dtor()
269 pefree(data, data->persistent); in php_zlib_deflate_dtor()
305 pefree(data, persistent); in php_zlib_filter_create()
312 pefree(data->inbuf, persistent); in php_zlib_filter_create()
313 pefree(data, persistent); in php_zlib_filter_create()
[all …]
/PHP-8.2/sapi/phpdbg/
H A Dphpdbg_btree.c28 # define pemalloc(size, persistent) malloc(size) argument
29 # define pefree(ptr, persistent) free(ptr) argument
36 tree->persistent = 0; in phpdbg_btree_init()
161 …btree_branch *memory = *branch = pemalloc((i + 2) * sizeof(phpdbg_btree_branch), tree->persistent); in phpdbg_btree_insert_or_update()
203 pefree(tree->branch, tree->persistent); in phpdbg_btree_delete()
210 pefree(last_dual_branch->branches[!last_dual_branch_branch], tree->persistent); in phpdbg_btree_delete()
218 pefree(last_dual_branch->branches[last_dual_branch_branch], tree->persistent); in phpdbg_btree_delete()
227 void phpdbg_btree_clean_recursive(phpdbg_btree_branch *branch, zend_ulong depth, bool persistent) { in phpdbg_btree_clean_recursive() argument
232 phpdbg_btree_clean_recursive(branch->branches[use_branch], depth, persistent); in phpdbg_btree_clean_recursive()
236 pefree(start, persistent); in phpdbg_btree_clean_recursive()
[all …]
/PHP-8.2/ext/bz2/
H A Dbz2_filter.c44 int persistent; member
188 pefree(data->inbuf, data->persistent); in php_bz2_decompress_dtor()
189 pefree(data->outbuf, data->persistent); in php_bz2_decompress_dtor()
190 pefree(data, data->persistent); in php_bz2_decompress_dtor()
296 pefree(data->inbuf, data->persistent); in php_bz2_compress_dtor()
297 pefree(data->outbuf, data->persistent); in php_bz2_compress_dtor()
298 pefree(data, data->persistent); in php_bz2_compress_dtor()
326 data->persistent = persistent; in php_bz2_filter_create()
396 pefree(data->strm.next_in, persistent); in php_bz2_filter_create()
397 pefree(data->strm.next_out, persistent); in php_bz2_filter_create()
[all …]
/PHP-8.2/ext/oci8/tests/
H A Dpersistent.phpt2 reusing persistent connections
20 resource(%d) of type (oci8 persistent connection)
21 resource(%d) of type (oci8 persistent connection)
22 resource(%d) of type (oci8 persistent connection)
H A Dpassword_2.phpt2 oci_password_change() for persistent connections
25 // Connect (persistent) and change the password
77 resource(%d) of type (oci8 persistent connection)
78 resource(%d) of type (oci8 persistent connection)
79 resource(%d) of type (oci8 persistent connection)
H A Ddrcp_pconn_close1.phpt13 // Test will open a persistent connection
42 resource(%d) of type (oci8 persistent connection)
43 resource(%d) of type (oci8 persistent connection)
/PHP-8.2/main/
H A Dphp_network.h349 …e php_stream_sock_open_from_socket(socket, persistent) _php_stream_sock_open_from_socket((socket),… argument
350 …(host, port, socktype, timeout, persistent) _php_stream_sock_open_host((host), (port), (socktype),… argument
353 …p_stream_sock_open_from_socket_rel(socket, persistent) _php_stream_sock_open_from_socket((socket),… argument
354 …(host, port, socktype, timeout, persistent) _php_stream_sock_open_host((host), (port), (socktype),… argument
355 …am_sock_open_unix_rel(path, pathlen, persistent, timeval) _php_stream_sock_open_unix((path), (path… argument

Completed in 100 milliseconds

123456