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

12

/PHP_5_4/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 Dfsock.c32 static void php_fsockopen_stream(INTERNAL_FUNCTION_PARAMETERS, int persistent) argument
54 if (persistent) {
127 Open persistent Internet or Unix domain socket connection */
/PHP_5_4/ext/sybase_ct/
H A Dphp_sybase_ct.c336 /* Non-persistent connections will always be connected or we wouldn't
585 le_plink = zend_register_list_destructors_ex(NULL, _close_sybase_plink, "sybase-ct link persistent", module_number);
729 static void php_sybase_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) argument
738 if (persistent) {
759 persistent=0;
761 if (persistent) {
764 /* try to find if we already have this link in our persistent list */
774 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase: Too many open persistent links (%ld)", SybCtG(num_persistent));
847 } else { /* non persistent */
929 Open persistent Sybas
[all...]
/PHP_5_4/main/streams/
H A Dplain_wrapper.c422 /* temporary streams are never persistent */
901 int persistent = options & STREAM_OPEN_PERSISTENT; local
919 if (persistent) {
/PHP_5_4/Zend/
H A Dzend_hash.c110 pefree_rel((p)->pData, (ht)->persistent); \
116 (p)->pData = (void *) pemalloc_rel(nDataSize, (ht)->persistent); \
119 (p)->pData = (void *) perealloc_rel((p)->pData, nDataSize, (ht)->persistent); \
130 (p)->pData = (void *) pemalloc_rel(nDataSize, (ht)->persistent);\
132 pefree_rel(p, (ht)->persistent); \
141 (ht)->arBuckets = (Bucket **) pecalloc((ht)->nTableSize, sizeof(Bucket *), (ht)->persistent); \
148 ZEND_API int _zend_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC)
172 ht->persistent = persistent;
179 ZEND_API int _zend_hash_init_ex(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent, zend_boo argument
[all...]
H A Dzend_hash.h76 zend_bool persistent; member in struct:_hashtable
99 ZEND_API int _zend_hash_init(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC);
100 ZEND_API int _zend_hash_init_ex(HashTable *ht, uint nSize, hash_func_t pHashFunction, dtor_func_t pDestructor, zend_bool persistent, zend_bool bApplyProtection ZEND_FILE_LINE_DC);
103 #define zend_hash_init(ht, nSize, pHashFunction, pDestructor, persistent) _zend_hash_init((ht), (nSize), (pHashFunction), (pDestructor), (persistent) ZEND_FILE_LINE_CC)
104 #define zend_hash_init_ex(ht, nSize, pHashFunction, pDestructor, persistent, bApplyProtection) _zend_hash_init_ex((ht), (nSize), (pHashFunction), (pDestructor), (persistent), (bApplyProtection) ZEND_FILE_LINE_CC)
304 #define ZEND_INIT_SYMTABLE_EX(ht, n, persistent) \
305 zend_hash_init(ht, n, NULL, ZVAL_PTR_DTOR, persistent)
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_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_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_ts_hash.c62 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)
69 return _zend_hash_init(TS_HASH(ht), nSize, pHashFunction, pDestructor, persistent ZEND_FILE_LINE_RELAY_CC);
72 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) argument
79 return _zend_hash_init_ex(TS_HASH(ht), nSize, pHashFunction, pDestructor, persistent, bApplyProtection ZEND_FILE_LINE_RELAY_CC);
/PHP_5_4/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);
296 pefree(data->inbuf, data->persistent);
297 pefree(data->outbuf, data->persistent);
298 pefree(data, data->persistent);
312 static php_stream_filter *php_bz2_filter_create(const char *filtername, zval *filterparams, int persistent TSRMLS_D
[all...]
/PHP_5_4/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;
648 if (persistent) {
661 /* try to find if we already have this link in our persistent list */
811 info = pemalloc(sizeof(dba_info), persistent);
813 info->path = pestrdup(Z_STRVAL_PP(args[0]), persistent);
817 info->flags = (hptr->flags & ~DBA_LOCK_ALL) | (lock_flag & DBA_LOCK_ALL) | (persistent ? DBA_PERSISTENT : 0);
849 if (!persistent) {
853 info->lock.name = pestrdup(opened_path, persistent);
[all...]
/PHP_5_4/ext/dba/libinifile/
H A Dinifile.c82 inifile * inifile_alloc(php_stream *fp, int readonly, int persistent TSRMLS_DC)
93 dba = pemalloc(sizeof(inifile), persistent);
102 void inifile_free(inifile *dba, int persistent) argument
107 pefree(dba, persistent);
/PHP_5_4/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_4/ext/mssql/
H A Dphp_mssql.c439 le_plink = zend_register_list_destructors_ex(NULL, _close_mssql_plink, "mssql link persistent", module_number);
539 static void php_mssql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) argument
632 persistent=0;
634 if (persistent) {
637 /* try to find if we already have this link in our persistent list */
648 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Too many open persistent links (%ld)", MS_SQL_G(num_persistent));
710 log_error("PHP/MS SQL: Hashed persistent link is not a MS SQL link!",php_rqst->server);
712 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Hashed persistent link is not a MS SQL link!");
750 } else { /* non persistent */
860 Establishes a persistent connectio
[all...]
/PHP_5_4/ext/mysqli/
H A Dmysqli_nonapi.c66 zend_bool persistent = FALSE; local
156 mysql->persistent = persistent = TRUE;
208 if (persistent && MyG(max_persistent) != -1 &&
211 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Too many open persistent links (%ld)",
219 if (!(mysql->mysql = mysqlnd_init(persistent))) {
276 /* store persistent connection */
277 if (persistent && (new_connection || is_real_connect)) {
300 mysql->persistent = FALSE;
H A Dphp_mysqli_structs.h131 zend_bool persistent; member in struct:__anon4
/PHP_5_4/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);
136 ret = pemalloc(REAL_SIZE(size), persistent);
144 DBG_INF_FMT("size=%lu ptr=%p persistent=%u", size, ret, persistent);
147 enum mysqlnd_collected_stats s1 = persistent? STAT_MEM_MALLOC_COUNT:STAT_MEM_EMALLOC_COUNT;
148 enum mysqlnd_collected_stats s2 = persistent? STAT_MEM_MALLOC_AMOUNT:STAT_MEM_EMALLOC_AMOUNT;
199 void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D)
204 long * threshold = persistent? &MYSQLND_G(debug_calloc_fail_threshold):&MYSQLND_G(debug_ecalloc_fail_threshold);
218 ret = pecalloc(nmemb, REAL_SIZE(size), persistent);
372 pefree(REAL_PTR(ptr), persistent); local
[all...]
H A Dmysqlnd_wireprotocol.h64 zend_bool persistent; member in struct:st_mysqlnd_packet_header
309 PHPAPI MYSQLND_PROTOCOL * mysqlnd_protocol_init(zend_bool persistent TSRMLS_DC);
H A Dmysqlnd_ps.c163 result = conn->m->result_init(stmt->result->field_count, stmt->persistent TSRMLS_CC);
421 MYSQLND_RES * result = stmt->conn->m->result_init(stmt_to_prepare->field_count, stmt_to_prepare->persistent TSRMLS_CC);
1485 stmt->param_bind = mnd_pecalloc(stmt->param_count, sizeof(MYSQLND_PARAM_BIND), stmt->persistent);
1627 stmt->result_bind = mnd_pecalloc(stmt->field_count, sizeof(MYSQLND_RESULT_BIND), stmt->persistent);
1629 stmt->result_bind = mnd_perealloc(stmt->result_bind, stmt->field_count * sizeof(MYSQLND_RESULT_BIND), stmt->persistent);
1803 result = stmt->conn->m->result_init(stmt->field_count, stmt->persistent TSRMLS_CC);
2102 mnd_pefree(stmt->error_info->error_list, s->persistent);
2219 mnd_pefree(stmt->execute_cmd_buffer.buffer, stmt->persistent);
2240 zend_bool persistent = (s != NULL) ? s->persistent local
[all...]
/PHP_5_4/ext/pdo_pgsql/
H A Dpgsql_driver.c44 static char * _pdo_pgsql_trim_message(const char *message, int persistent) argument
56 tmp = pemalloc(i + 1, persistent);
/PHP_5_4/ext/interbase/
H A Dinterbase.c893 static void _php_ibase_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) /* {{{ */ argument
950 if (zend_list_find(xlink, &type) && ((!persistent && type == le_link) || type == le_plink)) {
958 /* ... or a persistent one */
993 /* use non-persistent if allowed number of persistent links is exceeded */
994 if (!persistent || ((l = INI_INT("ibase.max_persistent") != -1) && IBG(num_persistent) >= l)) {
1044 Open a persistent connection to an InterBase database */
/PHP_5_4/ext/odbc/
H A Dphp_odbc_includes.h232 int persistent; member in struct:odbc_connection
/PHP_5_4/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);
168 pefree(data->inbuf, data->persistent);
169 pefree(data->outbuf, data->persistent);
170 pefree(data, data->persistent);
279 pefree(data->inbuf, data->persistent);
280 pefree(data->outbuf, data->persistent);
281 pefree(data, data->persistent);
295 static php_stream_filter *php_zlib_filter_create(const char *filtername, zval *filterparams, int persistent TSRMLS_D
[all...]

Completed in 72 milliseconds

12