Searched defs:persistent (Results 1 - 25 of 42) sorted by relevance

12

/PHP_TRUNK/Zend/
H A Dzend_ptr_stack.c28 ZEND_API void zend_ptr_stack_init_ex(zend_ptr_stack *stack, zend_bool persistent) argument
32 stack->persistent = persistent;
79 pefree(stack->elements, stack->persistent);
101 pefree(stack->elements[i], stack->persistent);
H A Dzend_ptr_stack.h29 zend_bool persistent; member in struct:_zend_ptr_stack
37 ZEND_API void zend_ptr_stack_init_ex(zend_ptr_stack *stack, zend_bool persistent);
52 stack->elements = (void **) perealloc(stack->elements, (sizeof(void *) * (stack->max)), stack->persistent); \
H A Dzend_smart_str.h52 static zend_always_inline size_t smart_str_alloc(smart_str *str, size_t len, zend_bool persistent) { argument
59 str->s = zend_string_alloc(str->a, persistent);
65 str->s = (zend_string *) perealloc(str->s, _STR_HEADER_SIZE + str->a + 1, persistent);
85 static zend_always_inline void smart_str_appendc_ex(smart_str *dest, char ch, zend_bool persistent) { argument
86 size_t new_len = smart_str_alloc(dest, 1, persistent);
91 static zend_always_inline void smart_str_appendl_ex(smart_str *dest, const char *str, size_t len, zend_bool persistent) { argument
92 size_t new_len = smart_str_alloc(dest, len, persistent);
97 static zend_always_inline void smart_str_append_ex(smart_str *dest, const zend_string *src, zend_bool persistent) { argument
98 smart_str_appendl_ex(dest, src->val, src->len, persistent);
101 static zend_always_inline void smart_str_append_smart_str_ex(smart_str *dest, const smart_str *src, zend_bool persistent) { argument
107 smart_str_append_long_ex(smart_str *dest, zend_long num, zend_bool persistent) argument
113 smart_str_append_unsigned_ex(smart_str *dest, zend_ulong num, zend_bool persistent) argument
[all...]
H A Dzend_llist.c26 ZEND_API void zend_llist_init(zend_llist *l, size_t size, llist_dtor_func_t dtor, unsigned char persistent) argument
33 l->persistent = persistent;
39 zend_llist_element *tmp = pemalloc(sizeof(zend_llist_element)+l->size-1, l->persistent);
57 zend_llist_element *tmp = pemalloc(sizeof(zend_llist_element)+l->size-1, l->persistent);
87 pefree((current), (l)->persistent);\
114 pefree(current, l->persistent);
148 pefree(old_tail, l->persistent);
156 zend_llist_init(dst, src->size, src->dtor, src->persistent);
H A Dzend_llist.h43 unsigned char persistent; member in struct:_zend_llist
50 ZEND_API void zend_llist_init(zend_llist *l, size_t size, llist_dtor_func_t dtor, unsigned char persistent);
H A Dzend_multibyte.c53 static int dummy_encoding_list_parser(const char *encoding_list, size_t encoding_list_len, const zend_encoding ***return_list, size_t *return_size, int persistent) argument
55 *return_list = pemalloc(0, persistent);
153 ZEND_API int zend_multibyte_parse_encoding_list(const char *encoding_list, size_t encoding_list_len, const zend_encoding ***return_list, size_t *return_size, int persistent) argument
155 return multibyte_functions.encoding_list_parser(encoding_list, encoding_list_len, return_list, return_size, persistent);
H A Dzend_string.h95 static zend_always_inline zend_string *zend_string_alloc(size_t len, int persistent) argument
97 zend_string *ret = (zend_string *)pemalloc(ZEND_MM_ALIGNED_SIZE(_STR_HEADER_SIZE + len + 1), persistent);
102 GC_TYPE_INFO(ret) = IS_STRING | ((persistent ? IS_STR_PERSISTENT : 0) << 8);
105 GC_FLAGS(ret) = (persistent ? IS_STR_PERSISTENT : 0);
113 static zend_always_inline zend_string *zend_string_safe_alloc(size_t n, size_t m, size_t l, int persistent) argument
115 zend_string *ret = (zend_string *)safe_pemalloc(n, m, ZEND_MM_ALIGNED_SIZE(_STR_HEADER_SIZE + l + 1), persistent);
120 GC_TYPE_INFO(ret) = IS_STRING | ((persistent ? IS_STR_PERSISTENT : 0) << 8);
123 GC_FLAGS(ret) = (persistent ? IS_STR_PERSISTENT : 0);
131 static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, int persistent) argument
133 zend_string *ret = zend_string_alloc(len, persistent);
148 zend_string_dup(zend_string *s, int persistent) argument
157 zend_string_realloc(zend_string *s, size_t len, int persistent) argument
176 zend_string_safe_realloc(zend_string *s, size_t n, size_t m, size_t l, int persistent) argument
[all...]
H A Dzend_ts_hash.c62 ZEND_API void _zend_ts_hash_init(TsHashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC)
69 _zend_hash_init(TS_HASH(ht), nSize, pDestructor, persistent ZEND_FILE_LINE_RELAY_CC);
72 ZEND_API void _zend_ts_hash_init_ex(TsHashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent, zend_bool bApplyProtection ZEND_FILE_LINE_DC) argument
79 _zend_hash_init_ex(TS_HASH(ht), nSize, pDestructor, persistent, bApplyProtection ZEND_FILE_LINE_RELAY_CC); local
/PHP_TRUNK/ext/bz2/
H A Dbz2_filter.c47 int persistent; member in struct:_php_bz2_filter_data
56 return (void *)safe_pemalloc(items, size, 0, ((php_bz2_filter_data*)opaque)->persistent);
61 pefree((void *)address, ((php_bz2_filter_data*)opaque)->persistent);
190 pefree(data->inbuf, data->persistent);
191 pefree(data->outbuf, data->persistent);
192 pefree(data, data->persistent);
294 pefree(data->inbuf, data->persistent);
295 pefree(data->outbuf, data->persistent);
296 pefree(data, data->persistent);
310 static php_stream_filter *php_bz2_filter_create(const char *filtername, zval *filterparams, int persistent) argument
[all...]
/PHP_TRUNK/ext/dba/
H A Ddba.c508 le_pdb = zend_register_list_destructors_ex(dba_close_pe_rsrc, dba_close_rsrc, "dba persistent", module_number);
614 static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, int persistent) argument
627 int persistent_flag = persistent ? STREAM_OPEN_PERSISTENT : 0;
652 if (persistent) {
665 /* try to find if we already have this link in our persistent list */
816 info = pemalloc(sizeof(dba_info), persistent);
818 info->path = pestrdup(Z_STRVAL(args[0]), persistent);
822 info->flags = (hptr->flags & ~DBA_LOCK_ALL) | (lock_flag & DBA_LOCK_ALL) | (persistent ? DBA_PERSISTENT : 0);
854 if (!persistent) {
858 info->lock.name = pestrdup(opened_path, persistent);
[all...]
/PHP_TRUNK/ext/dba/libinifile/
H A Dinifile.c82 inifile * inifile_alloc(php_stream *fp, int readonly, int persistent) argument
93 dba = pemalloc(sizeof(inifile), persistent);
102 void inifile_free(inifile *dba, int persistent) argument
107 pefree(dba, persistent);
/PHP_TRUNK/ext/interbase/
H A Dinterbase.c882 static void _php_ibase_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) /* {{{ */ argument
938 if ((!persistent && xlink->type == le_link) || xlink->type == le_plink) {
954 /* ... or a persistent one */
986 /* use non-persistent if allowed number of persistent links is exceeded */
987 if (!persistent || ((l = INI_INT("ibase.max_persistent") != -1) && IBG(num_persistent) >= l)) {
1045 Open a persistent connection to an InterBase database */
/PHP_TRUNK/ext/mcrypt/
H A Dmcrypt_filter.c33 char persistent; member in struct:_php_mcrypt_filter_data
66 outchunk = pemalloc(chunklen, data->persistent);
83 newbucket = php_stream_bucket_new(stream, outchunk, n, 1, data->persistent);
114 newbucket = php_stream_bucket_new(stream, data->block_buffer, data->blocksize, 0, data->persistent);
133 pefree(data->block_buffer, data->persistent);
139 pefree(data, data->persistent);
152 static php_stream_filter *php_mcrypt_filter_create(const char *filtername, zval *filterparams, int persistent) argument
255 data = pemalloc(sizeof(php_mcrypt_filter_data), persistent);
260 data->block_buffer = pemalloc(data->blocksize, persistent);
266 data->persistent
[all...]
/PHP_TRUNK/ext/mysqli/
H A Dmysqli_nonapi.c66 zend_bool persistent = FALSE; local
155 mysql->persistent = persistent = TRUE;
207 if (persistent && MyG(max_persistent) != -1 &&
210 php_error_docref(NULL, E_WARNING, "Too many open persistent links (%pd)",
218 if (!(mysql->mysql = mysqlnd_init(MYSQLND_CLIENT_KNOWS_RSET_COPY_DATA, persistent))) {
272 /* store persistent connection */
273 if (persistent && (new_connection || is_real_connect)) {
296 mysql->persistent = FALSE;
H A Dphp_mysqli_structs.h131 zend_bool persistent; member in struct:__anon130
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_ps.c92 result->stored_data = (MYSQLND_RES_BUFFERED *) mysqlnd_result_buffered_zval_init(result->field_count, TRUE, result->persistent);
181 result = conn->m->result_init(stmt->result->field_count, stmt->persistent);
440 MYSQLND_RES * result = stmt->conn->m->result_init(stmt_to_prepare->field_count, stmt_to_prepare->persistent);
1510 stmt->param_bind = mnd_pecalloc(stmt->param_count, sizeof(MYSQLND_PARAM_BIND), stmt->persistent);
1652 stmt->result_bind = mnd_pecalloc(stmt->field_count, sizeof(MYSQLND_RESULT_BIND), stmt->persistent);
1654 stmt->result_bind = mnd_perealloc(stmt->result_bind, stmt->field_count * sizeof(MYSQLND_RESULT_BIND), stmt->persistent);
1829 result = stmt->conn->m->result_init(stmt->field_count, stmt->persistent);
1834 result->unbuf = mysqlnd_result_unbuffered_init(stmt->field_count, TRUE, result->persistent);
2093 mnd_pefree(stmt->error_info->error_list, s->persistent);
2208 mnd_pefree(stmt->execute_cmd_buffer.buffer, stmt->persistent);
2229 zend_bool persistent = (s != NULL) ? s->persistent : 0; local
[all...]
H A Dmysqlnd_result.c185 mnd_pefree(result->lengths, result->persistent);
201 mnd_pefree(result, result->persistent);
243 mnd_pefree(set->initialized, set->persistent);
271 mnd_pefree(set->lengths, set->persistent);
288 mnd_pefree(set, set->persistent);
348 mnd_pefree(result, result->persistent);
372 result->meta = result->m.result_meta_init(result->field_count, result->persistent);
475 conn->persistent);
490 SET_EMPTY_MESSAGE(conn->last_message, conn->last_message_len, conn->persistent);
502 result = conn->current_result = conn->m->result_init(rset_header->field_count, conn->persistent);
1919 mysqlnd_result_unbuffered_init(unsigned int field_count, zend_bool ps, zend_bool persistent) argument
1960 mysqlnd_result_buffered_zval_init(unsigned int field_count, zend_bool ps, zend_bool persistent) argument
2003 mysqlnd_result_buffered_c_init(unsigned int field_count, zend_bool ps, zend_bool persistent) argument
[all...]
H A Dmysqlnd_result_meta.c33 php_mysqlnd_free_field_metadata(MYSQLND_FIELD *meta, zend_bool persistent) argument
37 mnd_pefree(meta->root, persistent);
41 mnd_pefree(meta->def, persistent);
65 field_packet->persistent_alloc = meta->persistent;
71 mnd_pefree(meta->fields[i].root, meta->persistent);
156 DBG_INF_FMT("persistent=%u", meta->persistent);
162 php_mysqlnd_free_field_metadata(fields++, meta->persistent);
164 mnd_pefree(meta->fields, meta->persistent);
170 mnd_pefree(meta->zend_hash_keys, meta->persistent);
[all...]
H A Dmysqlnd_wireprotocol.h64 zend_bool persistent; member in struct:st_mysqlnd_packet_header
323 PHPAPI MYSQLND_PROTOCOL * mysqlnd_protocol_init(zend_bool persistent);
/PHP_TRUNK/ext/odbc/
H A Dphp_odbc_includes.h232 int persistent; member in struct:odbc_connection
/PHP_TRUNK/ext/standard/
H A Dbrowscap.c79 static void convert_browscap_pattern(zval *pattern, int persistent) /* {{{ */ argument
86 res = zend_string_safe_alloc(Z_STRLEN_P(pattern), 2, 4, persistent);
142 int persistent = bdata->htab->u.flags & HASH_FLAG_PERSISTENT; local
170 ZVAL_NEW_STR(&new_property, zend_string_init("1", sizeof("1")-1, persistent));
178 ZVAL_NEW_STR(&new_property, zend_string_init("", sizeof("")-1, persistent));
180 ZVAL_STR(&new_property, zend_string_dup(Z_STR_P(arg2), persistent));
182 new_key = zend_string_dup(Z_STR_P(arg1), persistent);
193 if (persistent) {
199 (dtor_func_t) (persistent?browscap_entry_dtor_persistent
201 persistent);
222 browscap_read_file(char *filename, browser_data *browdata, int persistent) argument
275 browscap_bdata_dtor(browser_data *bdata, int persistent) argument
[all...]
H A Dfsock.c32 static void php_fsockopen_stream(INTERNAL_FUNCTION_PARAMETERS, int persistent) argument
58 if (persistent) {
136 Open persistent Internet or Unix domain socket connection */
H A Duser_filters.c274 zval *filterparams, int persistent)
284 if (persistent) {
286 "cannot use a user-space filter with a persistent stream");
273 user_filter_factory_create(const char *filtername, zval *filterparams, int persistent) argument
/PHP_TRUNK/ext/zlib/
H A Dzlib_filter.c33 int persistent; member in struct:_php_zlib_filter_data
43 return (voidpf)safe_pemalloc(items, size, 0, ((php_zlib_filter_data*)opaque)->persistent);
48 pefree((void*)address, ((php_zlib_filter_data*)opaque)->persistent);
162 pefree(data->inbuf, data->persistent);
163 pefree(data->outbuf, data->persistent);
164 pefree(data, data->persistent);
269 pefree(data->inbuf, data->persistent);
270 pefree(data->outbuf, data->persistent);
271 pefree(data, data->persistent);
285 static php_stream_filter *php_zlib_filter_create(const char *filtername, zval *filterparams, int persistent) argument
[all...]
/PHP_TRUNK/main/streams/
H A Dfilter.c85 /* all data in a persistent bucket must also be persistent */
250 PHPAPI php_stream_filter *php_stream_filter_create(const char *filtername, zval *filterparams, int persistent) argument
261 filter = factory->create_filter(filtername, filterparams, persistent);
273 filter = factory->create_filter(filtername, filterparams, persistent);
293 PHPAPI php_stream_filter *_php_stream_filter_alloc(php_stream_filter_ops *fops, void *abstract, int persistent STREAMS_DC)
297 filter = (php_stream_filter*) pemalloc_rel_orig(sizeof(php_stream_filter), persistent);
302 filter->is_persistent = persistent;

Completed in 37 milliseconds

12