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

123

/PHP_5_3/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_5_3/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_5_3/ext/bz2/
H A Dbz2_filter.c37 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);
189 pefree(data->inbuf, data->persistent);
190 pefree(data->outbuf, data->persistent);
191 pefree(data, data->persistent);
295 pefree(data->inbuf, data->persistent);
296 pefree(data->outbuf, data->persistent);
297 pefree(data, data->persistent);
311 static php_stream_filter *php_bz2_filter_create(const char *filtername, zval *filterparams, int persistent TSRMLS_D
[all...]
/PHP_5_3/ext/dba/libinifile/
H A Dinifile.h63 inifile * inifile_alloc(php_stream *fp, int readonly, int persistent TSRMLS_DC);
64 void inifile_free(inifile *dba, int persistent);
/PHP_5_3/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_5_3/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
342 int persistent; member in struct:_php_conv_base64_encode
367 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
754 int persistent; member in struct:_php_conv_qprint_encode
934 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
966 int persistent; member in struct:_php_conv_qprint_decode
1149 php_conv_qprint_decode_ctor(php_conv_qprint_decode *inst, const char *lbchars, size_t lbchars_len, int lbchars_dup, int persistent) argument
1171 int persistent; member in struct:_php_convert_filter
1182 php_conv_get_string_prop_ex(const HashTable *ht, char **pretval, size_t *pretval_len, char *field_name, size_t field_name_len, int persistent) argument
1328 php_conv_open(int conv_mode, const HashTable *options, int persistent) argument
1462 php_convert_filter_ctor(php_convert_filter *inst, int conv_mode, HashTable *conv_opts, const char *filtername, int persistent) argument
1816 int persistent; member in struct:_php_consumed_filter_data
1913 int persistent; member in struct:_php_chunked_filter_data
[all...]
H A Dbrowscap.c85 static void convert_browscap_pattern(zval *pattern, int persistent) /* {{{ */ argument
92 t = (char *) safe_pemalloc(Z_STRLEN_P(pattern), 2, 5, persistent);
144 int persistent = bdata->htab->persistent; local
167 new_property = (zval *) pemalloc(sizeof(zval), persistent);
176 Z_STRVAL_P(new_property) = pestrndup("1", 1, persistent);
184 Z_STRVAL_P(new_property) = pestrndup("", 0, persistent);
188 Z_STRLEN_P(arg2), persistent);
191 new_key = pestrndup(Z_STRVAL_P(arg1), Z_STRLEN_P(arg1), persistent);
194 pefree(new_key, persistent);
[all...]
/PHP_5_3/ext/zlib/
H A Dzlib_filter.c28 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);
272 pefree(data->inbuf, data->persistent);
273 pefree(data->outbuf, data->persistent);
274 pefree(data, data->persistent);
288 static php_stream_filter *php_zlib_filter_create(const char *filtername, zval *filterparams, int persistent TSRMLS_D
[all...]
/PHP_5_3/main/
H A Dphp_network.h299 #define php_stream_sock_open_from_socket(socket, persistent) _php_stream_sock_open_from_socket((socket), (persistent) STREAMS_CC TSRMLS_CC)
300 #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)
303 #define php_stream_sock_open_from_socket_rel(socket, persistent) _php_stream_sock_open_from_socket((socket), (persistent) STREAMS_REL_CC TSRMLS_CC)
304 #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)
305 #define php_stream_sock_open_unix_rel(path, pathlen, persistent, timeval) _php_stream_sock_open_unix((path), (pathlen), (persistent), (timeva
[all...]
/PHP_5_3/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_5_3/Zend/
H A Dzend_alloc.h121 /* Selective persistent/non persistent allocation macros */
122 #define pemalloc(size, persistent) ((persistent)?__zend_malloc(size):emalloc(size))
123 #define safe_pemalloc(nmemb, size, offset, persistent) ((persistent)?_safe_malloc(nmemb, size, offset):safe_emalloc(nmemb, size, offset))
124 #define pefree(ptr, persistent) ((persistent)?free(ptr):efree(ptr))
125 #define pecalloc(nmemb, size, persistent) ((persistent)
[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);\
116 pefree(current, l->persistent);
149 pefree(old_tail, l->persistent);
164 zend_llist_init(dst, src->size, src->dtor, src->persistent);
H A Dzend_ptr_stack.c28 ZEND_API void zend_ptr_stack_init_ex(zend_ptr_stack *stack, zend_bool persistent) argument
30 stack->top_element = stack->elements = (void **) pemalloc(sizeof(void *)*PTR_STACK_BLOCK_SIZE, persistent);
33 stack->persistent = persistent;
80 pefree(stack->elements, stack->persistent);
102 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);
51 stack->elements = (void **) perealloc(stack->elements, (sizeof(void *) * (stack->max)), stack->persistent); \
H A Dzend_ts_hash.h40 ZEND_API int _zend_ts_hash_init(TsHashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC);
41 ZEND_API int _zend_ts_hash_init_ex(TsHashTable *ht, uint nSize, hash_func_t pHashFunction, 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, pHashFunction, 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, pHashFunction, pDestructor, persistent, bApplyProtection ZEND_FILE_LINE_CC)
124 #define ZEND_TS_INIT_SYMTABLE_EX(ht, n, persistent) \
125 zend_ts_hash_init(ht, n, NULL, ZVAL_PTR_DTOR, persistent)
/PHP_5_3/ext/mysqlnd/
H A Dmysqlnd_debug.c852 void * _mysqlnd_pemalloc(size_t size, zend_bool persistent MYSQLND_MEM_D)
856 long * threshold = persistent? &MYSQLND_G(debug_malloc_fail_threshold):&MYSQLND_G(debug_emalloc_fail_threshold);
864 ret = pemalloc(REAL_SIZE(size), persistent);
872 DBG_INF_FMT("size=%lu ptr=%p persistent=%u", size, ret, persistent);
875 enum mysqlnd_collected_stats s1 = persistent? STAT_MEM_MALLOC_COUNT:STAT_MEM_EMALLOC_COUNT;
876 enum mysqlnd_collected_stats s2 = persistent? STAT_MEM_MALLOC_AMOUNT:STAT_MEM_EMALLOC_AMOUNT;
920 void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D)
924 long * threshold = persistent? &MYSQLND_G(debug_calloc_fail_threshold):&MYSQLND_G(debug_ecalloc_fail_threshold);
932 ret = pecalloc(nmemb, REAL_SIZE(size), persistent);
1062 pefree(REAL_PTR(ptr), persistent); local
[all...]
H A Dmysqlnd_debug.h182 void * (*m_pemalloc)(size_t size, zend_bool persistent MYSQLND_MEM_D);
184 void * (*m_pecalloc)(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D);
186 void * (*m_perealloc)(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D);
188 void (*m_pefree)(void *ptr, zend_bool persistent MYSQLND_MEM_D);
193 char * (*m_pestrndup)(const char * const ptr, size_t size, zend_bool persistent MYSQLND_MEM_D);
194 char * (*m_pestrdup)(const char * const ptr, zend_bool persistent MYSQLND_MEM_D);
201 PHPAPI void * _mysqlnd_pemalloc(size_t size, zend_bool persistent MYSQLND_MEM_D);
203 PHPAPI void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D);
205 PHPAPI void * _mysqlnd_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D);
207 PHPAPI void _mysqlnd_pefree(void *ptr, zend_bool persistent MYSQLND_MEM_
[all...]
H A Dmysqlnd_net.h26 PHPAPI MYSQLND_NET * mysqlnd_net_init(zend_bool persistent TSRMLS_DC);
H A Dmysqlnd_priv.h47 #define pestrndup(s, length, persistent) ((persistent)?zend_strndup((s),(length)):estrndup((s),(length)))
108 #define SET_NEW_MESSAGE(buf, buf_len, message, len, persistent) \
111 mnd_pefree((buf), (persistent)); \
114 (buf) = mnd_pestrndup((message), (len), (persistent)); \
121 #define SET_EMPTY_MESSAGE(buf, buf_len, persistent) \
124 mnd_pefree((buf), (persistent)); \
H A Dmysqlnd_result.h26 PHPAPI MYSQLND_RES * mysqlnd_result_init(unsigned int field_count, 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);
157 field_packet->persistent_alloc = meta->persistent;
163 mnd_pefree(meta->fields[i].root, meta->persistent);
272 DBG_INF_FMT("persistent=%u", meta->persistent);
278 php_mysqlnd_free_field_metadata(fields++, meta->persistent TSRMLS_CC);
280 mnd_pefree(meta->fields, meta->persistent);
290 mnd_pefree(meta->zend_hash_keys[i].ustr.v, 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.c401 mnd_pefree(p, p->header.persistent);
514 mnd_pefree(p, p->header.persistent);
601 mnd_pefree(p, p->header.persistent);
679 mnd_pefree(_packet, ((MYSQLND_PACKET_EOF *)_packet)->header.persistent);
754 mnd_pefree(p, p->header.persistent);
875 mnd_pefree(p, p->header.persistent);
1013 DBG_INF_FMT("Def found, length %lu, persistent=%u", len, packet->persistent_alloc);
1025 DBG_INF_FMT("allocing root. persistent=%u", packet->persistent_alloc);
1102 mnd_pefree(p, p->header.persistent);
1196 zend_bool persistent,
1194 php_mysqlnd_rowp_read_binary_protocol(MYSQLND_MEMORY_POOL_CHUNK * row_buffer, zval ** fields, unsigned int field_count, MYSQLND_FIELD *fields_metadata, zend_bool persistent, zend_bool as_unicode, zend_bool as_int_or_float, MYSQLND_STATS * stats TSRMLS_DC) argument
1294 php_mysqlnd_rowp_read_text_protocol(MYSQLND_MEMORY_POOL_CHUNK * row_buffer, zval ** fields, unsigned int field_count, MYSQLND_FIELD *fields_metadata, zend_bool persistent, zend_bool as_unicode, zend_bool as_int_or_float, MYSQLND_STATS * stats TSRMLS_DC) argument
[all...]
H A Dmysqlnd_wireprotocol.h64 zend_bool persistent; member in struct:st_mysqlnd_packet_header
262 zend_bool persistent,
269 zend_bool persistent,
274 PHPAPI MYSQLND_PROTOCOL * mysqlnd_protocol_init(zend_bool persistent TSRMLS_DC);

Completed in 26 milliseconds

123