Home
last modified time | relevance | path

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

123456

/PHP-8.0/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()
131 data->persistent = persistent; in MYSQLND_METHOD()
172 new_object->persistent = to_be_cloned->persistent; in MYSQLND_METHOD()
251 DBG_INF_FMT("persistent=%u", persistent); in MYSQLND_METHOD()
254 pfc->persistent = pfc->data->persistent = persistent; in MYSQLND_METHOD()
276 DBG_INF_FMT("persistent=%u", persistent); in MYSQLND_METHOD()
279 vio->persistent = vio->data->persistent = persistent; in MYSQLND_METHOD()
300 DBG_INF_FMT("persistent=%u", persistent); in MYSQLND_METHOD()
[all …]
H A Dmysqlnd_alloc.c129 ret = pemalloc_rel(REAL_SIZE(size), persistent); in _mysqlnd_pemalloc()
134 ret = pemalloc_rel(REAL_SIZE(size), persistent); in _mysqlnd_pemalloc()
210 ret = pecalloc_rel(nmemb, REAL_SIZE(size), persistent); in _mysqlnd_pecalloc()
357 pefree_rel(REAL_PTR(ptr), persistent); in _mysqlnd_pefree()
525 ret = pemalloc_rel(REAL_SIZE(length + 1), persistent); in _mysqlnd_pememdup()
661 return pemalloc_rel(size, persistent); in mysqlnd_zend_mm_pemalloc()
677 return pecalloc_rel(nmemb, size, persistent); in mysqlnd_zend_mm_pecalloc()
693 return perealloc_rel(ptr, new_size, persistent); in mysqlnd_zend_mm_perealloc()
709 pefree_rel(ptr, persistent); in mysqlnd_zend_mm_pefree()
749 char * dest = pemalloc_rel(length, persistent); in mysqlnd_zend_mm_pememdup()
[all …]
H A Dmysqlnd_alloc.h29 void * (*m_pemalloc)(size_t size, zend_bool persistent MYSQLND_MEM_D);
31 void * (*m_pecalloc)(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D);
33 void * (*m_perealloc)(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D);
35 void (*m_pefree)(void *ptr, zend_bool persistent MYSQLND_MEM_D);
40 char * (*m_pememdup)(const char * const ptr, size_t size, zend_bool persistent MYSQLND_MEM_D);
41 char * (*m_pestrndup)(const char * const ptr, size_t size, zend_bool persistent MYSQLND_MEM_D);
42 char * (*m_pestrdup)(const char * const ptr, zend_bool persistent MYSQLND_MEM_D);
69 static inline MYSQLND_STRING mnd_dup_cstring(const MYSQLND_CSTRING str, const zend_bool persistent) in mnd_dup_cstring() argument
71 const MYSQLND_STRING ret = {(char*) mnd_pemalloc(str.l + 1, persistent), str.l}; in mnd_dup_cstring()
H A Dmysqlnd_statistics.c215 mysqlnd_stats_init(MYSQLND_STATS ** stats, const size_t statistic_count, const zend_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()
219 (*stats)->triggers = pecalloc(statistic_count, sizeof(mysqlnd_stat_trigger), persistent); in mysqlnd_stats_init()
231 mysqlnd_stats_end(MYSQLND_STATS * stats, const zend_bool persistent) in mysqlnd_stats_end() argument
236 pefree(stats->triggers, persistent); in mysqlnd_stats_end()
237 pefree(stats->values, persistent); in mysqlnd_stats_end()
239 pefree(stats, persistent); in mysqlnd_stats_end()
/PHP-8.0/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.0/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.0/Zend/
H A Dzend_smart_str.h57 static zend_always_inline size_t smart_str_alloc(smart_str *str, size_t len, zend_bool persistent) { in END_EXTERN_C()
64 if (persistent) { in END_EXTERN_C()
75 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_extend_ex()
81 static zend_always_inline void smart_str_free_ex(smart_str *str, zend_bool persistent) { in smart_str_free_ex() argument
83 zend_string_release_ex(str->s, persistent); in smart_str_free_ex()
112 size_t new_len = smart_str_alloc(dest, 1, persistent); in smart_str_appendc_ex()
118 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_appendl_ex()
124 smart_str_appendl_ex(dest, ZSTR_VAL(src), ZSTR_LEN(src), persistent); in smart_str_append_ex()
129 smart_str_append_ex(dest, src->s, persistent); in smart_str_append_smart_str_ex()
136 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 …zend_always_inline size_t smart_string_alloc(smart_string *str, size_t len, zend_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, zend_bool persistent) { in smart_string_free_ex() argument
67 pefree(str->c, persistent); in smart_string_free_ex()
79 …end_always_inline void smart_string_appendc_ex(smart_string *dest, char ch, zend_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 …_inline void smart_string_append_long_ex(smart_string *dest, zend_long num, zend_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 …ne void smart_string_append_unsigned_ex(smart_string *dest, zend_ulong num, zend_bool persistent) { in smart_string_append_unsigned_ex() argument
[all …]
H A Dzend_alloc.h193 #define pemalloc(size, persistent) ((persistent)?__zend_malloc(size):emalloc(size)) argument
195 #define pefree(ptr, persistent) ((persistent)?free(ptr):efree(ptr)) argument
197 if (persistent) { \
204 #define pecalloc(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size)):ecalloc((nme… argument
205 #define perealloc(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc((ptr)… argument
210 #define pestrdup(s, persistent) ((persistent)?strdup(s):estrdup(s)) argument
211 #define pestrndup(s, length, persistent) ((persistent)?zend_strndup((s),(length)):estrndup((s),(len… argument
213 #define pemalloc_rel(size, persistent) ((persistent)?__zend_malloc(size):emalloc_rel(size)) argument
214 #define pefree_rel(ptr, persistent) ((persistent)?free(ptr):efree_rel(ptr)) argument
216 #define perealloc_rel(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc_r… argument
[all …]
H A Dzend_string.h142 static zend_always_inline zend_string *zend_string_alloc(size_t len, bool persistent) in zend_string_alloc() argument
166 zend_string *ret = zend_string_alloc(len, persistent); in zend_string_init()
192 static zend_always_inline zend_string *zend_string_dup(zend_string *s, bool persistent) in zend_string_dup() argument
197 return zend_string_init(ZSTR_VAL(s), ZSTR_LEN(s), persistent); in zend_string_dup()
207 return zend_string_init(ZSTR_VAL(s), ZSTR_LEN(s), persistent); in zend_string_separate()
226 ret = zend_string_alloc(len, persistent); in zend_string_realloc()
247 ret = zend_string_alloc(len, persistent); in zend_string_extend()
268 ret = zend_string_alloc(len, persistent); in zend_string_truncate()
288 ret = zend_string_safe_alloc(n, m, l, persistent); in zend_string_safe_realloc()
321 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, zend_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_attributes.c184 bool persistent = attr->flags & ZEND_ATTRIBUTE_PERSISTENT; in attr_free() local
193 if (persistent) { in attr_free()
200 pefree(attr, persistent); in attr_free()
205 bool persistent = flags & ZEND_ATTRIBUTE_PERSISTENT; in zend_add_attribute() local
207 *attributes = pemalloc(sizeof(HashTable), persistent); in zend_add_attribute()
208 zend_hash_init(*attributes, 8, NULL, attr_free, persistent); in zend_add_attribute()
211 zend_attribute *attr = pemalloc(ZEND_ATTRIBUTE_SIZE(argc), persistent); in zend_add_attribute()
213 if (persistent == ((GC_FLAGS(name) & IS_STR_PERSISTENT) != 0)) { in zend_add_attribute()
216 attr->name = zend_string_dup(name, persistent); in zend_add_attribute()
219 attr->lcname = zend_string_tolower_ex(attr->name, persistent); in zend_add_attribute()
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()
145 pefree(old_tail, l->persistent); in zend_llist_remove_tail()
153 zend_llist_init(dst, src->size, src->dtor, src->persistent); in zend_llist_copy()
/PHP-8.0/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.0/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
1066 inst->persistent = persistent; in php_conv_qprint_decode_ctor()
1073 int persistent; member
1299 inst->persistent = persistent; in php_convert_filter_ctor()
1690 data->persistent = persistent; in consumed_filter_create()
1721 int persistent; member
[all …]
H A Dbrowscap.c230 if (persistent) { in browscap_intern_str()
252 interned = zend_string_dup(lcname, persistent); in browscap_intern_str_ci()
253 if (persistent) { in browscap_intern_str_ci()
304 int persistent = GC_FLAGS(bdata->htab) & IS_ARRAY_PERSISTENT; in php_browscap_parser_cb() local
350 browscap_add_kv(bdata, new_key, new_value, persistent); in php_browscap_parser_cb()
368 if (persistent) { in php_browscap_parser_cb()
378 = pemalloc(sizeof(browscap_entry), persistent); in php_browscap_parser_cb()
420 browdata->htab = pemalloc(sizeof *browdata->htab, persistent); in browscap_read_file()
422 persistent ? browscap_entry_dtor_persistent : browscap_entry_dtor, persistent); in browscap_read_file()
463 pefree(bdata->htab, persistent); in browscap_bdata_dtor()
[all …]
/PHP-8.0/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.0/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 …phpdbg_btree_clean_recursive(phpdbg_btree_branch *branch, zend_ulong depth, zend_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.0/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
24 // Connect (persistent) and change the password
76 resource(%d) of type (oci8 persistent connection)
77 resource(%d) of type (oci8 persistent connection)
78 resource(%d) of type (oci8 persistent connection)
H A Ddrcp_pconn_close1.phpt13 // Test will open a persistent connection
41 resource(%d) of type (oci8 persistent connection)
42 resource(%d) of type (oci8 persistent connection)
/PHP-8.0/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.0/main/
H A Dphp_network.h342 …e php_stream_sock_open_from_socket(socket, persistent) _php_stream_sock_open_from_socket((socket),… argument
343 …(host, port, socktype, timeout, persistent) _php_stream_sock_open_host((host), (port), (socktype),… argument
346 …p_stream_sock_open_from_socket_rel(socket, persistent) _php_stream_sock_open_from_socket((socket),… argument
347 …(host, port, socktype, timeout, persistent) _php_stream_sock_open_host((host), (port), (socktype),… argument
348 …am_sock_open_unix_rel(path, pathlen, persistent, timeval) _php_stream_sock_open_unix((path), (path… argument
/PHP-8.0/ext/oci8/
H A Doci8_dtrace.d21 …try(char *username, char *dbname, char *charset, long session_mode, int persistent, int exclusive);
32 …probe oci8__connect__type(int persistent, int exclusive, void *connection, long num_persistent, lo…

Completed in 77 milliseconds

123456