Home
last modified time | relevance | path

Searched refs:persistent (Results 1 – 25 of 129) sorted by path

123456

/php-src/
H A DUPGRADING405 . When using persistent connections, there is now a liveness check in the
/php-src/Zend/
H A Dzend_API.c3456 …_class_alias_ex(const char *name, size_t name_len, zend_class_entry *ce, bool persistent) /* {{{ */ in zend_register_class_alias_ex() argument
3462 if (persistent && EG(current_module) && EG(current_module)->type == MODULE_TEMPORARY) { in zend_register_class_alias_ex()
3463 persistent = 0; in zend_register_class_alias_ex()
3467 lcname = zend_string_alloc(name_len-1, persistent); in zend_register_class_alias_ex()
3470 lcname = zend_string_alloc(name_len, persistent); in zend_register_class_alias_ex()
H A Dzend_API.h396 …_register_class_alias_ex(const char *name, size_t name_len, zend_class_entry *ce, bool persistent);
H A Dzend_alloc.h188 #define pemalloc(size, persistent) ((persistent)?__zend_malloc(size ZEND_FILE_LINE_CC ZEND_FILE_LIN… argument
190 #define pefree(ptr, persistent) ((persistent)?free(ptr):efree(ptr)) argument
191 #define pefree_size(ptr, size, persistent) do { \ argument
192 if (persistent) { \
203 #define perealloc_recoverable(ptr, size, persistent) ((persistent)?realloc((ptr), (size)):erealloc_… 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 ZEND_FILE_LINE_CC ZEND_FILE… argument
209 #define pefree_rel(ptr, persistent) ((persistent)?free(ptr):efree_rel(ptr)) argument
213 #define perealloc_recoverable_rel(ptr, size, persistent) ((persistent)?realloc((ptr), (size)):ereal… argument
[all …]
H A Dzend_attributes.c257 bool persistent = attr->flags & ZEND_ATTRIBUTE_PERSISTENT; in attr_free() local
266 if (persistent) { in attr_free()
273 pefree(attr, persistent); in attr_free()
278 bool persistent = flags & ZEND_ATTRIBUTE_PERSISTENT; in zend_add_attribute() local
280 *attributes = pemalloc(sizeof(HashTable), persistent); in zend_add_attribute()
281 zend_hash_init(*attributes, 8, NULL, attr_free, persistent); in zend_add_attribute()
284 zend_attribute *attr = pemalloc(ZEND_ATTRIBUTE_SIZE(argc), persistent); in zend_add_attribute()
286 if (persistent == ((GC_FLAGS(name) & IS_STR_PERSISTENT) != 0)) { in zend_add_attribute()
289 attr->name = zend_string_dup(name, persistent); in zend_add_attribute()
292 attr->lcname = zend_string_tolower_ex(attr->name, persistent); in zend_add_attribute()
H A Dzend_compile.h888 ZEND_API void zend_type_release(zend_type type, bool persistent);
H A Dzend_constants.c554 bool persistent = (ZEND_CONSTANT_FLAGS(c) & CONST_PERSISTENT) != 0; in zend_register_constant() local
562 lowercase_name = zend_string_init(ZSTR_VAL(c->name), ZSTR_LEN(c->name), persistent); in zend_register_constant()
572 || (!persistent && zend_get_special_const(ZSTR_VAL(name), ZSTR_LEN(name))) in zend_register_constant()
577 if (!persistent) { in zend_register_constant()
H A Dzend_hash.c262 …e void _zend_hash_init_int(HashTable *ht, uint32_t nSize, dtor_func_t pDestructor, bool persistent) in _zend_hash_init_int() argument
265 …GC_TYPE_INFO(ht) = GC_ARRAY | (persistent ? ((GC_PERSISTENT|GC_NOT_COLLECTABLE) << GC_FLAGS_SHIFT)… in _zend_hash_init_int()
277 …D_FASTCALL _zend_hash_init(HashTable *ht, uint32_t nSize, dtor_func_t pDestructor, bool persistent) in _zend_hash_init() argument
279 _zend_hash_init_int(ht, nSize, pDestructor, persistent); in _zend_hash_init()
H A Dzend_hash.h104 …_FASTCALL _zend_hash_init(HashTable *ht, uint32_t nSize, dtor_func_t pDestructor, bool persistent);
108 #define zend_hash_init(ht, nSize, pHashFunction, pDestructor, persistent) \ argument
109 _zend_hash_init((ht), (nSize), (pDestructor), (persistent))
387 #define ZEND_INIT_SYMTABLE_EX(ht, n, persistent) \ in END_EXTERN_C() argument
388 zend_hash_init(ht, n, NULL, ZVAL_PTR_DTOR, persistent) in END_EXTERN_C()
H A Dzend_inheritance.c63 static void zend_type_copy_ctor(zend_type *const type, bool use_arena, bool persistent);
68 bool persistent in zend_type_list_copy_ctor() argument
73 ? zend_arena_alloc(&CG(arena), size) : pemalloc(size, persistent); in zend_type_list_copy_ctor()
83 zend_type_copy_ctor(list_type, use_arena, persistent); in zend_type_list_copy_ctor()
87 static void zend_type_copy_ctor(zend_type *const type, bool use_arena, bool persistent) { in zend_type_copy_ctor() argument
89 zend_type_list_copy_ctor(type, use_arena, persistent); in zend_type_copy_ctor()
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_llist.h41 unsigned char persistent; member
48 …void zend_llist_init(zend_llist *l, size_t size, llist_dtor_func_t dtor, unsigned char persistent);
H A Dzend_multibyte.c51 …size_t encoding_list_len, const zend_encoding ***return_list, size_t *return_size, bool persistent) in dummy_encoding_list_parser() argument
53 *return_list = pemalloc(0, persistent); in dummy_encoding_list_parser()
158 …size_t encoding_list_len, const zend_encoding ***return_list, size_t *return_size, bool persistent) in zend_multibyte_parse_encoding_list() argument
160 …tions.encoding_list_parser(encoding_list, encoding_list_len, return_list, return_size, persistent); in zend_multibyte_parse_encoding_list()
H A Dzend_multibyte.h32 …ize_t encoding_list_len, const zend_encoding ***return_list, size_t *return_size, bool persistent);
69 …ize_t encoding_list_len, const zend_encoding ***return_list, size_t *return_size, bool persistent);
H A Dzend_opcode.c111 ZEND_API void zend_type_release(zend_type type, bool persistent) { in zend_type_release() argument
115 zend_type_release(*list_type, persistent); in zend_type_release()
118 pefree(ZEND_TYPE_LIST(type), persistent); in zend_type_release()
H A Dzend_operators.c3047 ZEND_API zend_string* ZEND_FASTCALL zend_string_tolower_ex(zend_string *str, bool persistent) /* {{… in zend_string_tolower_ex() argument
3058 zend_string *res = zend_string_alloc(length, persistent); in zend_string_tolower_ex()
3079 zend_string *res = zend_string_alloc(length, persistent); in zend_string_tolower_ex()
3096 ZEND_API zend_string* ZEND_FASTCALL zend_string_toupper_ex(zend_string *str, bool persistent) /* {{… in zend_string_toupper_ex() argument
3107 zend_string *res = zend_string_alloc(length, persistent); in zend_string_toupper_ex()
3128 zend_string *res = zend_string_alloc(length, persistent); in zend_string_toupper_ex()
H A Dzend_operators.h462 ZEND_API zend_string* ZEND_FASTCALL zend_string_tolower_ex(zend_string *str, bool persistent);
463 ZEND_API zend_string* ZEND_FASTCALL zend_string_toupper_ex(zend_string *str, bool persistent);
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_ptr_stack.h27 bool persistent; member
35 ZEND_API void zend_ptr_stack_init_ex(zend_ptr_stack *stack, bool persistent);
51 … = (void **) safe_perealloc(stack->elements, sizeof(void *), (stack->max), 0, stack->persistent); \ in END_EXTERN_C()
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_string.c198 static zend_string* ZEND_FASTCALL zend_init_string_for_interning(zend_string *str, bool persistent) in zend_init_string_for_interning() argument
203 str = zend_string_init(ZSTR_VAL(str), ZSTR_LEN(str), persistent); in zend_init_string_for_interning()
H A Dzend_string.h135 #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 …]
/php-src/docs-old/
H A Dstreams.md89 PHPAPI php_stream *php_stream_sock_open_from_socket(int socket, int persistent);
93 int socktype, int timeout, int persistent);
96 PHPAPI php_stream *php_stream_sock_open_unix(const char *path, int persistent,
121 size_t maxlen, int persistent);
291 size_t bufsize, int persistent, const char * mode)
301 * `persistent` controls how the memory is to be allocated - persistently so that
331 it, allocate it (use pemalloc with the persistent flag set appropriately), and
342 struct my_state * state = pemalloc(sizeof(struct my_state), persistent);
350 stream = php_stream_alloc(&my_ops, state, 0, persistent, "r");
404 read the stream->persistent field to determine if your struct was allocated in
[all …]
/php-src/docs/source/core/data-structures/
H A Dreference-counting.rst208 #define GC_PERSISTENT_LOCAL (1<<8) /* persistent, but thread-local */

Completed in 133 milliseconds

123456