Searched refs:persistent (Results 1 - 25 of 72) sorted by relevance

123

/PHP_TRUNK/ext/bcmath/libbcmath/src/
H A Dinit.c48 _bc_new_num_ex (length, scale, persistent)
49 int length, scale, persistent;
54 temp = (bc_num) safe_pemalloc (1, sizeof(bc_struct)+length, scale, persistent);
60 temp = (bc_num) pemalloc (sizeof(bc_struct), persistent);
69 temp->n_ptr = (char *) safe_pemalloc (1, length, scale, persistent);
81 _bc_free_num_ex (num, persistent)
83 int persistent;
90 pefree ((*num)->n_ptr, persistent);
91 pefree(*num, persistent);
/PHP_TRUNK/ext/mysql/tests/
H A Dconnect.inc24 function my_mysql_connect($host, $user, $passwd, $db, $port, $socket, $flags = NULL, $persistent = false) {
34 if ($persistent) {
41 printf("[000-a] Cannot connect using host '%s', user '%s', password '****', persistent = %d, [%d] %s\n",
42 $host, $user, ($persistent) ? 1 : 0,
/PHP_TRUNK/ext/oci8/
H A Doci8_dtrace.d21 probe oci8__connect__entry(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, long num_connections);
/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_alloc.h195 /* Selective persistent/non persistent allocation macros */
196 #define pemalloc(size, persistent) ((persistent)?__zend_malloc(size):emalloc(size))
197 #define safe_pemalloc(nmemb, size, offset, persistent) ((persistent)?_safe_malloc(nmemb, size, offset):safe_emalloc(nmemb, size, offset))
198 #define pefree(ptr, persistent) ((persistent)?free(ptr):efree(ptr))
199 #define pefree_size(ptr, size, persistent) ((persistent)
[all...]
H A Dzend_ts_hash.h40 ZEND_API void _zend_ts_hash_init(TsHashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC);
41 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);
45 #define zend_ts_hash_init(ht, nSize, pHashFunction, pDestructor, persistent) \
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) \
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) \
146 zend_ts_hash_init(ht, n, NULL, ZVAL_PTR_DTOR, 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_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...]
/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 TSRMLS_D
[all...]
/PHP_TRUNK/ext/dba/libinifile/
H A Dinifile.h65 inifile * inifile_alloc(php_stream *fp, int readonly, int persistent TSRMLS_DC);
66 void inifile_free(inifile *dba, int persistent);
/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 TSRMLS_CC);
114 newbucket = php_stream_bucket_new(stream, data->block_buffer, data->blocksize, 0, data->persistent TSRMLS_CC);
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 TSRMLS_DC)
255 data = pemalloc(sizeof(php_mcrypt_filter_data), persistent);
260 data->block_buffer = pemalloc(data->blocksize, persistent);
266 data->persistent
[all...]
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_alloc.h35 void * (*m_pemalloc)(size_t size, zend_bool persistent MYSQLND_MEM_D);
37 void * (*m_pecalloc)(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D);
39 void * (*m_perealloc)(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D);
41 void (*m_pefree)(void *ptr, zend_bool persistent MYSQLND_MEM_D);
46 char * (*m_pestrndup)(const char * const ptr, size_t size, zend_bool persistent MYSQLND_MEM_D);
47 char * (*m_pestrdup)(const char * const ptr, zend_bool persistent MYSQLND_MEM_D);
56 PHPAPI void * _mysqlnd_pemalloc(size_t size, zend_bool persistent MYSQLND_MEM_D);
58 PHPAPI void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D);
60 PHPAPI void * _mysqlnd_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D);
62 PHPAPI void _mysqlnd_pefree(void *ptr, zend_bool persistent MYSQLND_MEM_
[all...]
H A Dmysqlnd_driver.c116 MYSQLND_METHOD(mysqlnd_object_factory, get_connection)(zend_bool persistent TSRMLS_DC)
124 DBG_INF_FMT("persistent=%u", persistent);
125 new_object = mnd_pecalloc(1, alloc_size_ret, persistent);
129 new_object->data = mnd_pecalloc(1, alloc_size_ret_data, persistent);
131 mnd_pefree(new_object, persistent);
134 new_object->persistent = persistent;
142 data->persistent = persistent;
[all...]
H A Dmysqlnd_net.h26 PHPAPI MYSQLND_NET * mysqlnd_net_init(zend_bool persistent, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * error_info TSRMLS_DC);
H A Dmysqlnd_result.h26 PHPAPI MYSQLND_RES * mysqlnd_result_init(unsigned int field_count, zend_bool persistent TSRMLS_DC);
27 PHPAPI MYSQLND_RES_UNBUFFERED * mysqlnd_result_unbuffered_init(unsigned int field_count, zend_bool ps, zend_bool persistent TSRMLS_DC);
28 PHPAPI MYSQLND_RES_BUFFERED_ZVAL * mysqlnd_result_buffered_zval_init(unsigned int field_count, zend_bool ps, zend_bool persistent TSRMLS_DC);
29 PHPAPI MYSQLND_RES_BUFFERED_C * mysqlnd_result_buffered_c_init(unsigned int field_count, zend_bool ps, zend_bool persistent TSRMLS_DC);
H A Dmysqlnd_result_meta.c33 php_mysqlnd_free_field_metadata(MYSQLND_FIELD *meta, zend_bool persistent TSRMLS_DC)
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 TSRMLS_CC);
164 mnd_pefree(meta->fields, meta->persistent);
170 mnd_pefree(meta->zend_hash_keys, meta->persistent);
[all...]
H A Dmysqlnd_result_meta.h26 PHPAPI MYSQLND_RES_METADATA * mysqlnd_result_meta_init(unsigned int field_count, zend_bool persistent TSRMLS_DC);
H A Dmysqlnd_wireprotocol.c473 mnd_pefree(p, p->header.persistent);
671 mnd_pefree(p, p->header.persistent);
793 mnd_pefree(p, p->header.persistent);
834 mnd_pefree(p, p->header.persistent);
922 mnd_pefree(p, p->header.persistent);
1000 mnd_pefree(_packet, ((MYSQLND_PACKET_EOF *)_packet)->header.persistent);
1077 mnd_pefree(p, p->header.persistent);
1199 mnd_pefree(p, p->header.persistent);
1338 DBG_INF_FMT("Def found, length %lu, persistent=%u", len, packet->persistent_alloc);
1402 DBG_INF_FMT("allocing root. persistent
[all...]
H A Dmysqlnd_alloc.c117 void * _mysqlnd_pemalloc(size_t size, zend_bool persistent MYSQLND_MEM_D)
122 zend_long * threshold = persistent? &MYSQLND_G(debug_malloc_fail_threshold):&MYSQLND_G(debug_emalloc_fail_threshold);
137 ret = (persistent) ? __zend_malloc(REAL_SIZE(size)) : _emalloc(REAL_SIZE(size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
145 TRACE_ALLOC_INF_FMT("size=%lu ptr=%p persistent=%u", size, ret, persistent);
148 enum mysqlnd_collected_stats s1 = persistent? STAT_MEM_MALLOC_COUNT:STAT_MEM_EMALLOC_COUNT;
149 enum mysqlnd_collected_stats s2 = persistent? STAT_MEM_MALLOC_AMOUNT:STAT_MEM_EMALLOC_AMOUNT;
201 void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D)
206 zend_long * threshold = persistent? &MYSQLND_G(debug_calloc_fail_threshold):&MYSQLND_G(debug_ecalloc_fail_threshold);
220 ret = (persistent)
[all...]
/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);
164 pefree(data->inbuf, data->persistent);
165 pefree(data->outbuf, data->persistent);
166 pefree(data, data->persistent);
271 pefree(data->inbuf, data->persistent);
272 pefree(data->outbuf, data->persistent);
273 pefree(data, data->persistent);
287 static php_stream_filter *php_zlib_filter_create(const char *filtername, zval *filterparams, int persistent TSRMLS_D
[all...]
/PHP_TRUNK/main/
H A Dphp_network.h312 #define php_stream_sock_open_from_socket(socket, persistent) _php_stream_sock_open_from_socket((socket), (persistent) STREAMS_CC TSRMLS_CC)
313 #define php_stream_sock_open_host(host, port, socktype, timeout, persistent) _php_stream_sock_open_host((host), (port), (socktype), (timeout), (persistent) STREAMS_CC TSRMLS_CC)
316 #define php_stream_sock_open_from_socket_rel(socket, persistent) _php_stream_sock_open_from_socket((socket), (persistent) STREAMS_REL_CC TSRMLS_CC)
317 #define php_stream_sock_open_host_rel(host, port, socktype, timeout, persistent) _php_stream_sock_open_host((host), (port), (socktype), (timeout), (persistent) STREAMS_REL_CC TSRMLS_CC)
318 #define php_stream_sock_open_unix_rel(path, pathlen, persistent, timeval) _php_stream_sock_open_unix((path), (pathlen), (persistent), (timeva
[all...]
/PHP_TRUNK/main/streams/
H A Dphp_stream_filter_api.h134 PHPAPI php_stream_filter *_php_stream_filter_alloc(php_stream_filter_ops *fops, void *abstract, int persistent STREAMS_DC TSRMLS_DC);
136 #define php_stream_filter_alloc(fops, thisptr, persistent) _php_stream_filter_alloc((fops), (thisptr), (persistent) STREAMS_CC TSRMLS_CC)
137 #define php_stream_filter_alloc_rel(fops, thisptr, persistent) _php_stream_filter_alloc((fops), (thisptr), (persistent) STREAMS_REL_CC TSRMLS_CC)
145 php_stream_filter *(*create_filter)(const char *filtername, zval *filterparams, int persistent TSRMLS_DC);
152 PHPAPI php_stream_filter *php_stream_filter_create(const char *filtername, zval *filterparams, int persistent TSRMLS_DC);
H A Dphp_streams_int.h34 #define pemalloc_rel_orig(size, persistent) ((persistent) ? malloc((size)) : emalloc_rel_orig((size)))
35 #define perealloc_rel_orig(ptr, size, persistent) ((persistent) ? realloc((ptr), (size)) : erealloc_rel_orig((ptr), (size)))
37 # define pemalloc_rel_orig(size, persistent) pemalloc((size), (persistent))
38 # define perealloc_rel_orig(ptr, size, persistent) perealloc((ptr), (size), (persistent))
/PHP_TRUNK/ext/standard/
H A Dfilters.c70 static php_stream_filter *strfilter_rot13_create(const char *filtername, zval *filterparams, int persistent TSRMLS_DC)
72 return php_stream_filter_alloc(&strfilter_rot13_ops, NULL, persistent);
152 static php_stream_filter *strfilter_toupper_create(const char *filtername, zval *filterparams, int persistent TSRMLS_DC)
154 return php_stream_filter_alloc(&strfilter_toupper_ops, NULL, persistent);
157 static php_stream_filter *strfilter_tolower_create(const char *filtername, zval *filterparams, int persistent TSRMLS_DC)
159 return php_stream_filter_alloc(&strfilter_tolower_ops, NULL, persistent);
176 int persistent; member in struct:_php_strip_tags_filter
179 static int php_strip_tags_filter_ctor(php_strip_tags_filter *inst, const char *allowed_tags, int allowed_tags_len, int persistent) argument
182 if (NULL == (inst->allowed_tags = pemalloc(allowed_tags_len, persistent))) {
191 inst->persistent
331 int persistent; member in struct:_php_conv_base64_encode
357 php_conv_base64_encode_ctor(php_conv_base64_encode *inst, unsigned int line_len, const char *lbchars, size_t lbchars_len, int lbchars_dup, int persistent) argument
744 int persistent; member in struct:_php_conv_qprint_encode
963 php_conv_qprint_encode_ctor(php_conv_qprint_encode *inst, unsigned int line_len, const char *lbchars, size_t lbchars_len, int lbchars_dup, int opts, int persistent) argument
995 int persistent; member in struct:_php_conv_qprint_decode
1178 php_conv_qprint_decode_ctor(php_conv_qprint_decode *inst, const char *lbchars, size_t lbchars_len, int lbchars_dup, int persistent) argument
1200 int persistent; member in struct:_php_convert_filter
1836 int persistent; member in struct:_php_consumed_filter_data
1931 int persistent; member in struct:_php_chunked_filter_data
[all...]
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);
[all...]

Completed in 39 milliseconds

123