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

123

/PHP_5_6/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_6/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_6/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_5_6/Zend/
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);
147 pefree(old_tail, l->persistent);
162 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
32 stack->persistent = persistent;
79 pefree(stack->elements, stack->persistent);
101 pefree(stack->elements[i], stack->persistent);
H A Dzend_ts_hash.h40 ZEND_API int _zend_ts_hash_init(TsHashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC);
41 ZEND_API int _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)
124 #define ZEND_TS_INIT_SYMTABLE_EX(ht, n, persistent) \
125 zend_ts_hash_init(ht, n, NULL, ZVAL_PTR_DTOR, persistent)
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...]
/PHP_5_6/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);
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_5_6/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_6/ext/mysqlnd/
H A Dmysqlnd_alloc.c117 void * _mysqlnd_pemalloc(size_t size, zend_bool persistent MYSQLND_MEM_D)
122 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 long * threshold = persistent? &MYSQLND_G(debug_calloc_fail_threshold):&MYSQLND_G(debug_ecalloc_fail_threshold);
220 ret = (persistent)
[all...]
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_meta.h26 PHPAPI MYSQLND_RES_METADATA * mysqlnd_result_meta_init(unsigned int field_count, zend_bool persistent TSRMLS_DC);
H A Dmysqlnd_priv.h41 #define pestrndup(s, length, persistent) ((persistent)?zend_strndup((s),(length)):estrndup((s),(length)))
90 #define SET_NEW_MESSAGE(buf, buf_len, message, len, persistent) \
93 mnd_pefree((buf), (persistent)); \
96 (buf) = mnd_pestrndup((message), (len), (persistent)); \
103 #define SET_EMPTY_MESSAGE(buf, buf_len, persistent) \
106 mnd_pefree((buf), (persistent)); \
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);
109 field_packet->persistent_alloc = meta->persistent;
115 mnd_pefree(meta->fields[i].root, meta->persistent);
208 DBG_INF_FMT("persistent=%u", meta->persistent);
214 php_mysqlnd_free_field_metadata(fields++, meta->persistent TSRMLS_CC);
216 mnd_pefree(meta->fields, meta->persistent);
222 mnd_pefree(meta->zend_hash_keys, meta->persistent);
[all...]
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_wireprotocol.c475 mnd_pefree(p, p->header.persistent);
633 mnd_pefree(p, p->header.persistent);
755 mnd_pefree(p, p->header.persistent);
796 mnd_pefree(p, p->header.persistent);
884 mnd_pefree(p, p->header.persistent);
962 mnd_pefree(_packet, ((MYSQLND_PACKET_EOF *)_packet)->header.persistent);
1039 mnd_pefree(p, p->header.persistent);
1161 mnd_pefree(p, p->header.persistent);
1299 DBG_INF_FMT("Def found, length %lu, persistent=%u", len, packet->persistent_alloc);
1311 DBG_INF_FMT("allocing root. persistent
[all...]
/PHP_5_6/ext/standard/
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...]
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
973 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
1005 int persistent; member in struct:_php_conv_qprint_decode
1188 php_conv_qprint_decode_ctor(php_conv_qprint_decode *inst, const char *lbchars, size_t lbchars_len, int lbchars_dup, int persistent) argument
1210 int persistent; member in struct:_php_convert_filter
1221 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
1367 php_conv_open(int conv_mode, const HashTable *options, int persistent) argument
1501 php_convert_filter_ctor(php_convert_filter *inst, int conv_mode, HashTable *conv_opts, const char *filtername, int persistent) argument
1855 int persistent; member in struct:_php_consumed_filter_data
1952 int persistent; member in struct:_php_chunked_filter_data
[all...]
/PHP_5_6/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_6/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_6/main/
H A Dphp_network.h306 #define php_stream_sock_open_from_socket(socket, persistent) _php_stream_sock_open_from_socket((socket), (persistent) STREAMS_CC TSRMLS_CC)
307 #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)
310 #define php_stream_sock_open_from_socket_rel(socket, persistent) _php_stream_sock_open_from_socket((socket), (persistent) STREAMS_REL_CC TSRMLS_CC)
311 #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)
312 #define php_stream_sock_open_unix_rel(path, pathlen, persistent, timeval) _php_stream_sock_open_unix((path), (pathlen), (persistent), (timeva
[all...]
/PHP_5_6/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);
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...]

Completed in 42 milliseconds

123