Home
last modified time | relevance | path

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

123456

/PHP-7.2/ext/mysqlnd/
H A Dmysqlnd_driver.c114 mnd_pefree(new_object, persistent); in MYSQLND_METHOD()
117 new_object->persistent = persistent; in MYSQLND_METHOD()
133 data->persistent = persistent; in MYSQLND_METHOD()
174 new_object->persistent = to_be_cloned->persistent; in MYSQLND_METHOD()
201 ret->persistent = conn->persistent; in MYSQLND_METHOD()
208 stmt->persistent = persistent; in MYSQLND_METHOD()
259 pfc->persistent = pfc->data->persistent = persistent; in MYSQLND_METHOD()
272 mnd_pefree(pfc, persistent); in MYSQLND_METHOD()
294 vio->persistent = vio->data->persistent = persistent; in MYSQLND_METHOD()
307 mnd_pefree(vio, persistent); in MYSQLND_METHOD()
[all …]
H A Dmysqlnd_alloc.c139 ret = pemalloc_rel(REAL_SIZE(size), persistent); in _mysqlnd_pemalloc()
222 ret = pecalloc_rel(nmemb, REAL_SIZE(size), persistent); in _mysqlnd_pecalloc()
380 pefree_rel(REAL_PTR(ptr), persistent); in _mysqlnd_pefree()
558 ret = pemalloc_rel(REAL_SIZE(length + 1), persistent); in _mysqlnd_pememdup()
589 ret = pemalloc_rel(REAL_SIZE(length + 1), persistent); in _mysqlnd_pestrndup()
694 return pemalloc_rel(size, persistent); in mysqlnd_zend_mm_pemalloc()
710 return pecalloc_rel(nmemb, size, persistent); in mysqlnd_zend_mm_pecalloc()
726 return perealloc_rel(ptr, new_size, persistent); in mysqlnd_zend_mm_perealloc()
742 pefree_rel(ptr, persistent); in mysqlnd_zend_mm_pefree()
782 char * dest = pemalloc_rel(length, persistent); in mysqlnd_zend_mm_pememdup()
[all …]
H A Dmysqlnd_result_meta.c37 mnd_pefree(meta->root, persistent); in php_mysqlnd_free_field_metadata()
41 mnd_pefree(meta->def, persistent); in php_mysqlnd_free_field_metadata()
65 field_packet->persistent_alloc = meta->persistent; in MYSQLND_METHOD()
71 mnd_pefree(meta->fields[i].root, meta->persistent); in MYSQLND_METHOD()
113 DBG_INF_FMT("persistent=%u", meta->persistent); in MYSQLND_METHOD()
121 mnd_pefree(meta->fields, meta->persistent); in MYSQLND_METHOD()
131 mnd_pefree(meta, meta->persistent); in MYSQLND_METHOD()
150 DBG_INF_FMT("persistent=%u", persistent); in MYSQLND_METHOD()
156 new_meta->persistent = persistent; in MYSQLND_METHOD()
317 DBG_INF_FMT("persistent=%u", persistent); in mysqlnd_result_meta_init()
[all …]
H A Dmysqlnd_result.h23 PHPAPI MYSQLND_RES * mysqlnd_result_init(const unsigned int field_count, const zend_bool persistent
24 …lt_unbuffered_init(const unsigned int field_count, const zend_bool ps, const zend_bool persistent);
25 …buffered_zval_init(const unsigned int field_count, const zend_bool ps, const zend_bool persistent);
26 …lt_buffered_c_init(const unsigned int field_count, const zend_bool ps, const zend_bool persistent);
H A Dmysqlnd_connection.h47 #define SET_NEW_MESSAGE(buf, buf_len, message, len, persistent) \ argument
50 mnd_pefree((buf), (persistent)); \
53 (buf) = mnd_pestrndup((message), (len), (persistent)); \
60 #define SET_EMPTY_MESSAGE(buf, buf_len, persistent) \ argument
63 mnd_pefree((buf), (persistent)); \
70 …m_func_status mysqlnd_error_info_init(MYSQLND_ERROR_INFO * const info, const zend_bool persistent);
H A Dmysqlnd_alloc.h31 void * (*m_pemalloc)(size_t size, zend_bool persistent MYSQLND_MEM_D);
33 void * (*m_pecalloc)(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D);
35 void * (*m_perealloc)(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D);
37 void (*m_pefree)(void *ptr, zend_bool persistent MYSQLND_MEM_D);
42 char * (*m_pememdup)(const char * const ptr, size_t size, zend_bool persistent MYSQLND_MEM_D);
43 char * (*m_pestrndup)(const char * const ptr, size_t size, zend_bool persistent MYSQLND_MEM_D);
44 char * (*m_pestrdup)(const char * const ptr, zend_bool persistent MYSQLND_MEM_D);
71 static inline MYSQLND_STRING mnd_dup_cstring(const MYSQLND_CSTRING str, const zend_bool persistent) in mnd_dup_cstring() argument
73 const MYSQLND_STRING ret = {(char*) mnd_pemalloc(str.l + 1, persistent), str.l}; in mnd_dup_cstring()
H A Dmysqlnd_statistics.c217 mysqlnd_stats_init(MYSQLND_STATS ** stats, const size_t statistic_count, const zend_bool persistent) in mysqlnd_stats_init() argument
219 *stats = pecalloc(1, sizeof(MYSQLND_STATS), persistent); in mysqlnd_stats_init()
220 (*stats)->values = pecalloc(statistic_count, sizeof(uint64_t), persistent); in mysqlnd_stats_init()
221 (*stats)->triggers = pecalloc(statistic_count, sizeof(mysqlnd_stat_trigger), persistent); in mysqlnd_stats_init()
233 mysqlnd_stats_end(MYSQLND_STATS * stats, const zend_bool persistent) in mysqlnd_stats_end() argument
238 pefree(stats->triggers, persistent); in mysqlnd_stats_end()
239 pefree(stats->values, persistent); in mysqlnd_stats_end()
241 pefree(stats, persistent); in mysqlnd_stats_end()
H A Dmysqlnd_structs.h157 zend_bool persistent; member
831 zend_bool persistent; member
841 zend_bool persistent; member
945 zend_bool persistent; member
952 zend_bool persistent; member
1056 zend_bool persistent; member
1122 zend_bool persistent; member
1134 zend_bool persistent; member
1232 zend_bool persistent; member
1250 zend_bool persistent; member
[all …]
/PHP-7.2/main/streams/
H A Dphp_streams_int.h34 #define pemalloc_rel_orig(size, persistent) ((persistent) ? malloc((size)) : emalloc_rel_orig((size… argument
35 #define perealloc_rel_orig(ptr, size, persistent) ((persistent) ? realloc((ptr), (size)) : erealloc… argument
37 # define pemalloc_rel_orig(size, persistent) pemalloc((size), (persistent)) argument
38 # define perealloc_rel_orig(ptr, size, persistent) perealloc((ptr), (size), (persistent)) argument
H A Dphp_stream_filter_api.h134 …hp_stream_filter_alloc(php_stream_filter_ops *fops, void *abstract, uint8_t persistent STREAMS_DC);
136 …ine php_stream_filter_alloc(fops, thisptr, persistent) _php_stream_filter_alloc((fops), (thisptr),… argument
137 …php_stream_filter_alloc_rel(fops, thisptr, persistent) _php_stream_filter_alloc((fops), (thisptr),… argument
145 …php_stream_filter *(*create_filter)(const char *filtername, zval *filterparams, uint8_t persistent
152 …m_filter *php_stream_filter_create(const char *filtername, zval *filterparams, uint8_t persistent);
/PHP-7.2/ext/bcmath/libbcmath/src/
H A Dinit.c44 _bc_new_num_ex (length, scale, persistent) in _bc_new_num_ex() argument
45 int length, scale, persistent; in _bc_new_num_ex()
53 temp = (bc_num) safe_pemalloc (1, sizeof(bc_struct)+length, scale, persistent);
59 temp = (bc_num) pemalloc (sizeof(bc_struct), persistent);
67 temp->n_ptr = (char *) safe_pemalloc (1, length, scale, persistent);
78 _bc_free_num_ex (num, persistent) in _bc_free_num_ex() argument
80 int persistent;
87 pefree ((*num)->n_ptr, persistent);
88 pefree(*num, persistent);
/PHP-7.2/Zend/
H A Dzend_alloc.h195 #define pemalloc(size, persistent) ((persistent)?__zend_malloc(size):emalloc(size)) argument
197 #define pefree(ptr, persistent) ((persistent)?free(ptr):efree(ptr)) argument
199 if (persistent) { \
206 #define pecalloc(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size)):ecalloc((nme… argument
207 #define perealloc(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc((ptr)… argument
212 #define pestrdup(s, persistent) ((persistent)?strdup(s):estrdup(s)) argument
213 #define pestrndup(s, length, persistent) ((persistent)?zend_strndup((s),(length)):estrndup((s),(len… argument
215 #define pemalloc_rel(size, persistent) ((persistent)?__zend_malloc(size):emalloc_rel(size)) argument
216 #define pefree_rel(ptr, persistent) ((persistent)?free(ptr):efree_rel(ptr)) argument
218 #define perealloc_rel(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc_r… argument
[all …]
H A Dzend_smart_string.h74 …zend_always_inline size_t smart_string_alloc(smart_string *str, size_t len, zend_bool persistent) { in smart_string_alloc() argument
80 SMART_STRING_DO_REALLOC(str, persistent); in smart_string_alloc()
89 SMART_STRING_DO_REALLOC(str, persistent); in smart_string_alloc()
95 static zend_always_inline void smart_string_free_ex(smart_string *str, zend_bool persistent) { in smart_string_free_ex() argument
97 pefree(str->c, persistent); in smart_string_free_ex()
109 …end_always_inline void smart_string_appendc_ex(smart_string *dest, char ch, zend_bool persistent) { in smart_string_appendc_ex() argument
110 dest->len = smart_string_alloc(dest, 1, persistent); in smart_string_appendc_ex()
115 size_t new_len = smart_string_alloc(dest, len, persistent); in smart_string_appendl_ex()
121 …_inline void smart_string_append_long_ex(smart_string *dest, zend_long num, zend_bool persistent) { in smart_string_append_long_ex() argument
124 smart_string_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_string_append_long_ex()
[all …]
H A Dzend_smart_str.h55 static zend_always_inline size_t smart_str_alloc(smart_str *str, size_t len, zend_bool persistent) { in END_EXTERN_C()
62 if (persistent) { in END_EXTERN_C()
102 static zend_always_inline void smart_str_appendc_ex(smart_str *dest, char ch, zend_bool persistent)… in smart_str_appendc_ex() argument
103 size_t new_len = smart_str_alloc(dest, 1, persistent); in smart_str_appendc_ex()
109 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_appendl_ex()
114 …ys_inline void smart_str_append_ex(smart_str *dest, const zend_string *src, zend_bool persistent) { in smart_str_append_ex() argument
115 smart_str_appendl_ex(dest, ZSTR_VAL(src), ZSTR_LEN(src), persistent); in smart_str_append_ex()
120 smart_str_append_ex(dest, src->s, persistent); in smart_str_append_smart_str_ex()
124 …always_inline void smart_str_append_long_ex(smart_str *dest, zend_long num, zend_bool persistent) { in smart_str_append_long_ex() argument
127 smart_str_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_str_append_long_ex()
[all …]
H A Dzend_string.h139 GC_TYPE_INFO(ret) = IS_STRING | ((persistent ? IS_STR_PERSISTENT : 0) << 8); in zend_string_alloc()
142 GC_FLAGS(ret) = (persistent ? IS_STR_PERSISTENT : 0); in zend_string_alloc()
157 GC_TYPE_INFO(ret) = IS_STRING | ((persistent ? IS_STR_PERSISTENT : 0) << 8); in zend_string_safe_alloc()
160 GC_FLAGS(ret) = (persistent ? IS_STR_PERSISTENT : 0); in zend_string_safe_alloc()
170 zend_string *ret = zend_string_alloc(len, persistent); in zend_string_init()
179 zend_string *ret = zend_string_init(str, len, persistent); in zend_string_init_interned()
197 return zend_string_init(ZSTR_VAL(s), ZSTR_LEN(s), persistent); in zend_string_dup()
215 ret = zend_string_alloc(len, persistent); in zend_string_realloc()
235 ret = zend_string_alloc(len, persistent); in zend_string_extend()
255 ret = zend_string_alloc(len, persistent); in zend_string_truncate()
[all …]
H A Dzend_ptr_stack.c28 ZEND_API void zend_ptr_stack_init_ex(zend_ptr_stack *stack, zend_bool persistent) in zend_ptr_stack_init_ex() argument
32 stack->persistent = persistent; in zend_ptr_stack_init_ex()
79 pefree(stack->elements, stack->persistent); in zend_ptr_stack_destroy()
101 pefree(stack->elements[i], stack->persistent); in zend_ptr_stack_clean()
H A Dzend_ts_hash.h40 …it(TsHashTable *ht, uint32_t nSize, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_D…
41 …ex(TsHashTable *ht, uint32_t nSize, dtor_func_t pDestructor, zend_bool persistent, zend_bool bAppl…
45 #define zend_ts_hash_init(ht, nSize, pHashFunction, pDestructor, persistent) \ argument
46 _zend_ts_hash_init(ht, nSize, pDestructor, persistent ZEND_FILE_LINE_CC)
47 #define zend_ts_hash_init_ex(ht, nSize, pHashFunction, pDestructor, persistent, bApplyProtection) \ argument
48 _zend_ts_hash_init_ex(ht, nSize, pDestructor, persistent, bApplyProtection ZEND_FILE_LINE_CC)
145 #define ZEND_TS_INIT_SYMTABLE_EX(ht, n, persistent) \ argument
146 zend_ts_hash_init(ht, n, NULL, ZVAL_PTR_DTOR, persistent)
H A Dzend_llist.c26 … void zend_llist_init(zend_llist *l, size_t size, llist_dtor_func_t dtor, unsigned char persistent) in zend_llist_init() argument
33 l->persistent = persistent; in zend_llist_init()
38 zend_llist_element *tmp = pemalloc(sizeof(zend_llist_element)+l->size-1, l->persistent); in zend_llist_add_element()
56 zend_llist_element *tmp = pemalloc(sizeof(zend_llist_element)+l->size-1, l->persistent); in zend_llist_prepend_element()
86 pefree((current), (l)->persistent);\
113 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()
/PHP-7.2/ext/standard/
H A Dfilters.c191 inst->persistent = persistent; in php_strip_tags_filter_ctor()
329 int persistent; member
369 inst->persistent = persistent; in php_conv_base64_encode_ctor()
742 int persistent; member
978 inst->persistent = persistent; in php_conv_qprint_encode_ctor()
994 int persistent; member
1192 inst->persistent = persistent; in php_conv_qprint_decode_ctor()
1199 int persistent; member
1424 inst->persistent = persistent; in php_convert_filter_ctor()
1815 data->persistent = persistent; in consumed_filter_create()
[all …]
H A Dbrowscap.c255 interned = zend_string_dup(lcname, persistent); in browscap_intern_str_ci()
306 int persistent = bdata->htab->u.flags & HASH_FLAG_PERSISTENT; in php_browscap_parser_cb() local
351 browscap_add_kv(bdata, new_key, new_value, persistent); in php_browscap_parser_cb()
370 = pemalloc(sizeof(browscap_entry), persistent); in php_browscap_parser_cb()
413 browdata->htab = pemalloc(sizeof *browdata->htab, persistent); in browscap_read_file()
415 persistent ? browscap_entry_dtor_persistent : browscap_entry_dtor, persistent, 0); in browscap_read_file()
425 ctx.str_empty = zend_string_init("", sizeof("")-1, persistent); in browscap_read_file()
426 ctx.str_one = zend_string_init("1", sizeof("1")-1, persistent); in browscap_read_file()
427 zend_hash_init(&ctx.str_interned, 8, NULL, NULL, persistent); in browscap_read_file()
460 pefree(bdata->htab, persistent); in browscap_bdata_dtor()
[all …]
/PHP-7.2/ext/bz2/
H A Dbz2_filter.c47 int persistent; member
190 pefree(data->inbuf, data->persistent); in php_bz2_decompress_dtor()
191 pefree(data->outbuf, data->persistent); in php_bz2_decompress_dtor()
192 pefree(data, data->persistent); in php_bz2_decompress_dtor()
294 pefree(data->inbuf, data->persistent); in php_bz2_compress_dtor()
295 pefree(data->outbuf, data->persistent); in php_bz2_compress_dtor()
296 pefree(data, data->persistent); in php_bz2_compress_dtor()
324 data->persistent = persistent; in php_bz2_filter_create()
393 pefree(data->strm.next_in, persistent); in php_bz2_filter_create()
394 pefree(data->strm.next_out, persistent); in php_bz2_filter_create()
[all …]
/PHP-7.2/ext/zlib/
H A Dzlib_filter.c33 int persistent; member
156 pefree(data->inbuf, data->persistent); in php_zlib_inflate_dtor()
157 pefree(data->outbuf, data->persistent); in php_zlib_inflate_dtor()
158 pefree(data, data->persistent); in php_zlib_inflate_dtor()
265 pefree(data->inbuf, data->persistent); in php_zlib_deflate_dtor()
266 pefree(data->outbuf, data->persistent); in php_zlib_deflate_dtor()
267 pefree(data, data->persistent); in php_zlib_deflate_dtor()
303 pefree(data, persistent); in php_zlib_filter_create()
310 pefree(data->inbuf, persistent); in php_zlib_filter_create()
311 pefree(data, persistent); in php_zlib_filter_create()
[all …]
/PHP-7.2/sapi/phpdbg/
H A Dphpdbg_btree.c30 # define pemalloc(size, persistent) malloc(size) argument
31 # define pefree(ptr, persistent) free(ptr) argument
38 tree->persistent = 0; in phpdbg_btree_init()
163 …btree_branch *memory = *branch = pemalloc((i + 2) * sizeof(phpdbg_btree_branch), tree->persistent); in phpdbg_btree_insert_or_update()
205 pefree(tree->branch, tree->persistent); in phpdbg_btree_delete()
212 pefree(last_dual_branch->branches[!last_dual_branch_branch], tree->persistent); in phpdbg_btree_delete()
220 pefree(last_dual_branch->branches[last_dual_branch_branch], tree->persistent); in phpdbg_btree_delete()
229 …phpdbg_btree_clean_recursive(phpdbg_btree_branch *branch, zend_ulong depth, zend_bool persistent) { in phpdbg_btree_clean_recursive() argument
234 phpdbg_btree_clean_recursive(branch->branches[use_branch], depth, persistent); in phpdbg_btree_clean_recursive()
238 pefree(start, persistent); in phpdbg_btree_clean_recursive()
[all …]
/PHP-7.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)
/PHP-7.2/main/
H A Dphp_network.h329 …e php_stream_sock_open_from_socket(socket, persistent) _php_stream_sock_open_from_socket((socket),… argument
330 …(host, port, socktype, timeout, persistent) _php_stream_sock_open_host((host), (port), (socktype),… argument
333 …p_stream_sock_open_from_socket_rel(socket, persistent) _php_stream_sock_open_from_socket((socket),… argument
334 …(host, port, socktype, timeout, persistent) _php_stream_sock_open_host((host), (port), (socktype),… argument
335 …am_sock_open_unix_rel(path, pathlen, persistent, timeval) _php_stream_sock_open_unix((path), (path… argument

Completed in 154 milliseconds

123456