/PHP-8.4/ext/mysqlnd/ |
H A D | mysqlnd_driver.c | 110 DBG_INF_FMT("persistent=%u", persistent); in MYSQLND_METHOD() 117 mnd_pefree(new_object, persistent); in MYSQLND_METHOD() 120 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() 231 DBG_INF_FMT("persistent=%u", persistent); in MYSQLND_METHOD() 234 pfc->persistent = pfc->data->persistent = persistent; in MYSQLND_METHOD() 253 DBG_INF_FMT("persistent=%u", persistent); in MYSQLND_METHOD() 256 vio->persistent = vio->data->persistent = persistent; in MYSQLND_METHOD() 274 DBG_INF_FMT("persistent=%u", persistent); in MYSQLND_METHOD() [all …]
|
H A D | mysqlnd_alloc.c | 94 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() 375 return pemalloc_rel(size, persistent); in mysqlnd_zend_mm_pemalloc() 391 return pecalloc_rel(nmemb, size, persistent); in mysqlnd_zend_mm_pecalloc() 407 return perealloc_rel(ptr, new_size, persistent); in mysqlnd_zend_mm_perealloc() 423 pefree_rel(ptr, persistent); in mysqlnd_zend_mm_pefree() 431 char * dest = pemalloc_rel(length, persistent); in mysqlnd_zend_mm_pememdup() [all …]
|
H A D | mysqlnd_alloc.h | 29 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 D | mysqlnd_statistics.c | 215 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 D | mysqlnd_vio.c | 139 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.4/Zend/ |
H A D | zend_smart_str.h | 47 if (persistent) { in END_EXTERN_C() 58 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_extend_ex() 71 zend_string_release_ex(str->s, persistent); in smart_str_free_ex() 95 str->s = zend_string_realloc(str->s, ZSTR_LEN(str->s), persistent); in smart_str_trim_to_size_ex() 109 smart_str_trim_to_size_ex(str, persistent); in smart_str_extract_ex() 124 size_t new_len = smart_str_alloc(dest, 1, persistent); in smart_str_appendc_ex() 130 size_t new_len = smart_str_alloc(dest, len, persistent); in smart_str_appendl_ex() 136 smart_str_appendl_ex(dest, ZSTR_VAL(src), ZSTR_LEN(src), persistent); in smart_str_append_ex() 141 smart_str_append_ex(dest, src->s, persistent); in smart_str_append_smart_str_ex() 148 smart_str_appendl_ex(dest, result, buf + sizeof(buf) - 1 - result, persistent); in smart_str_append_long_ex() [all …]
|
H A D | zend_smart_string.h | 54 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 D | zend_alloc.h | 189 #define pemalloc(size, persistent) ((persistent)?__zend_malloc(size ZEND_FILE_LINE_CC ZEND_FILE_LIN… argument 191 #define pefree(ptr, persistent) ((persistent)?free(ptr):efree(ptr)) argument 192 #define pefree_size(ptr, size, persistent) do { \ argument 193 if (persistent) { \ 204 #define perealloc_recoverable(ptr, size, persistent) ((persistent)?realloc((ptr), (size)):erealloc_… argument 206 #define pestrdup(s, persistent) ((persistent)?__zend_strdup(s):estrdup(s)) argument 207 #define pestrndup(s, length, persistent) ((persistent)?zend_strndup((s),(length)):estrndup((s),(len… argument 209 #define pemalloc_rel(size, persistent) ((persistent)?__zend_malloc(size ZEND_FILE_LINE_CC ZEND_FILE… argument 210 #define pefree_rel(ptr, persistent) ((persistent)?free(ptr):efree_rel(ptr)) argument 214 #define perealloc_recoverable_rel(ptr, size, persistent) ((persistent)?realloc((ptr), (size)):ereal… argument [all …]
|
H A D | zend_string.h | 135 #define ZSTR_INIT_LITERAL(s, persistent) (zend_string_init((s), strlen(s), (persistent))) argument 174 static zend_always_inline zend_string *zend_string_alloc(size_t len, bool persistent) in zend_string_alloc() argument 198 zend_string *ret = zend_string_alloc(len, persistent); in zend_string_init() 229 return zend_string_init(ZSTR_VAL(s), ZSTR_LEN(s), persistent); in zend_string_dup() 239 return zend_string_init(ZSTR_VAL(s), ZSTR_LEN(s), persistent); in zend_string_separate() 258 ret = zend_string_alloc(len, persistent); in zend_string_realloc() 279 ret = zend_string_alloc(len, persistent); in zend_string_extend() 300 ret = zend_string_alloc(len, persistent); in zend_string_truncate() 320 ret = zend_string_safe_alloc(n, m, l, persistent); in zend_string_safe_realloc() 353 static zend_always_inline void zend_string_release_ex(zend_string *s, bool persistent) in zend_string_release_ex() argument [all …]
|
H A D | zend_ptr_stack.c | 24 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 D | zend_llist.c | 24 … 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()
|
/PHP-8.4/main/streams/ |
H A D | php_streams_int.h | 31 #define pemalloc_rel_orig(size, persistent) ((persistent) ? malloc((size)) : emalloc_rel_orig((size… argument 32 #define perealloc_rel_orig(ptr, size, persistent) ((persistent) ? realloc((ptr), (size)) : erealloc… argument 34 # define pemalloc_rel_orig(size, persistent) pemalloc((size), (persistent)) argument 35 # define perealloc_rel_orig(ptr, size, persistent) perealloc((ptr), (size), (persistent)) argument
|
H A D | php_stream_filter_api.h | 130 …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.4/ext/bcmath/libbcmath/src/ |
H A D | init.c | 38 static bc_num _bc_new_num_nonzeroed_ex_internal(size_t length, size_t scale, bool persistent) in _bc_new_num_nonzeroed_ex_internal() argument 44 if (!persistent && BCG(arena) && required_size <= BC_ARENA_SIZE - BCG(arena_offset)) { in _bc_new_num_nonzeroed_ex_internal() 50 temp = pemalloc(required_size, persistent); in _bc_new_num_nonzeroed_ex_internal() 62 bc_num _bc_new_num_ex(size_t length, size_t scale, bool persistent) in _bc_new_num_ex() argument 64 bc_num temp = _bc_new_num_nonzeroed_ex_internal(length, scale, persistent); in _bc_new_num_ex() 69 bc_num _bc_new_num_nonzeroed_ex(size_t length, size_t scale, bool persistent) in _bc_new_num_nonzeroed_ex() argument 71 return _bc_new_num_nonzeroed_ex_internal(length, scale, persistent); in _bc_new_num_nonzeroed_ex() 76 void _bc_free_num_ex(bc_num *num, bool persistent) in _bc_free_num_ex() argument 83 pefree(*num, persistent); in _bc_free_num_ex()
|
/PHP-8.4/sapi/cli/tests/ |
H A D | 006.phpt | 46 Constant [ <persistent> int PREG_PATTERN_ORDER ] { 1 } 47 Constant [ <persistent> int PREG_SET_ORDER ] { 2 } 48 Constant [ <persistent> int PREG_OFFSET_CAPTURE ] { 256 } 50 Constant [ <persistent> int PREG_SPLIT_NO_EMPTY ] { 1 } 53 Constant [ <persistent> int PREG_GREP_INVERT ] { 1 } 54 Constant [ <persistent> int PREG_NO_ERROR ] { 0 } 55 Constant [ <persistent> int PREG_INTERNAL_ERROR ] { 1 } 58 Constant [ <persistent> int PREG_BAD_UTF8_ERROR ] { 4 } 61 Constant [ <persistent> string PCRE_VERSION ] { %s } 62 Constant [ <persistent> int PCRE_VERSION_MAJOR ] { %d } [all …]
|
/PHP-8.4/ext/standard/ |
H A D | filters.c | 203 bool persistent; member 243 inst->persistent = persistent; in php_conv_base64_encode_ctor() 611 bool persistent; member 844 inst->persistent = persistent; in php_conv_qprint_encode_ctor() 860 bool persistent; member 1058 inst->persistent = persistent; in php_conv_qprint_decode_ctor() 1065 bool persistent; member 1287 inst->persistent = persistent; in php_convert_filter_ctor() 1611 bool persistent; member 1671 data->persistent = persistent; in consumed_filter_create() [all …]
|
H A D | browscap.c | 223 if (persistent) { in browscap_intern_str() 246 if (persistent) { in browscap_intern_str_ci() 309 bool persistent = GC_FLAGS(bdata->htab) & IS_ARRAY_PERSISTENT; in php_browscap_parser_cb() local 354 browscap_add_kv(bdata, new_key, new_value, persistent); in php_browscap_parser_cb() 372 if (persistent) { in php_browscap_parser_cb() 382 = pemalloc(sizeof(browscap_entry), persistent); in php_browscap_parser_cb() 424 persistent ? browscap_entry_dtor_persistent : browscap_entry_dtor, persistent); in browscap_read_file() 436 zend_hash_init(&ctx.str_interned, 8, NULL, NULL, persistent); in browscap_read_file() 438 zend_parse_ini_file(&fh, persistent, ZEND_INI_SCANNER_RAW, in browscap_read_file() 468 pefree(bdata->htab, persistent); in browscap_bdata_dtor() [all …]
|
/PHP-8.4/ext/standard/tests/streams/ |
H A D | gh8409.phpt | 2 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"; 30 OK: persistent stream closed
|
/PHP-8.4/ext/zlib/ |
H A D | zlib_filter.c | 29 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.4/sapi/phpdbg/ |
H A D | phpdbg_btree.c | 28 # 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.4/ext/bz2/ |
H A D | bz2_filter.c | 44 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.4/main/ |
H A D | php_network.h | 347 …e php_stream_sock_open_from_socket(socket, persistent) _php_stream_sock_open_from_socket((socket),… argument 348 …(host, port, socktype, timeout, persistent) _php_stream_sock_open_host((host), (port), (socktype),… argument 351 …p_stream_sock_open_from_socket_rel(socket, persistent) _php_stream_sock_open_from_socket((socket),… argument 352 …(host, port, socktype, timeout, persistent) _php_stream_sock_open_host((host), (port), (socktype),… argument 353 …am_sock_open_unix_rel(path, pathlen, persistent, timeval) _php_stream_sock_open_unix((path), (path… argument
|
/PHP-8.4/ext/odbc/tests/ |
H A D | odbc_setoption_002.phpt | 2 odbc_setoption(): Test for odbc_setoption() with persistent connection 23 Warning: odbc_setoption(): Unable to set option for persistent connection in %s on line %d
|
/PHP-8.4/ext/dba/ |
H A D | dba.c | 295 bool persistent = connection->info->flags & DBA_PERSISTENT; in dba_close_connection() local 297 if (!persistent) { in dba_close_connection() 305 zend_string_release_ex(connection->hash, persistent); in dba_close_connection() 509 if (ZSTR_IS_INTERNED(s) && !persistent) { in php_dba_zend_string_dup_safe() 513 if (persistent) { in php_dba_zend_string_dup_safe() 577 if (persistent) { in php_dba_open() 592 if (persistent) { in php_dba_open() 796 if (persistent) { in php_dba_open() 940 if (persistent) { in php_dba_open() 981 bool persistent = connection->info->flags & DBA_PERSISTENT; in PHP_FUNCTION() local [all …]
|
/PHP-8.4/ext/reflection/tests/ |
H A D | ReflectionConstant_dump.phpt | 30 Constant [ <persistent> string ZEND_CONSTANT_A ] { global } 35 Constant [ <persistent, deprecated> int ZEND_TEST_DEPRECATED ] { 42 }
|