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

12

/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_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, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC)
69 return _zend_hash_init(TS_HASH(ht), nSize, pDestructor, persistent ZEND_FILE_LINE_RELAY_CC);
72 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) argument
79 return _zend_hash_init_ex(TS_HASH(ht), nSize, pDestructor, persistent, bApplyProtection ZEND_FILE_LINE_RELAY_CC);
H A Dzend_hash.h77 zend_bool persistent; member in struct:_hashtable
100 ZEND_API int _zend_hash_init(HashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC);
101 ZEND_API int _zend_hash_init_ex(HashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent, zend_bool bApplyProtection ZEND_FILE_LINE_DC);
104 #define zend_hash_init(ht, nSize, pHashFunction, pDestructor, persistent) _zend_hash_init((ht), (nSize), (pDestructor), (persistent) ZEND_FILE_LINE_CC)
105 #define zend_hash_init_ex(ht, nSize, pHashFunction, pDestructor, persistent, bApplyProtection) _zend_hash_init_ex((ht), (nSize), (pDestructor), (persistent), (bApplyProtection) ZEND_FILE_LINE_CC)
312 #define ZEND_INIT_SYMTABLE_EX(ht, n, persistent) \
313 zend_hash_init(ht, n, NULL, ZVAL_PTR_DTOR, persistent)
H A Dzend_hash.c116 pefree_rel((p)->pData, (ht)->persistent); \
122 (p)->pData = (void *) pemalloc_rel(nDataSize, (ht)->persistent); \
125 (p)->pData = (void *) perealloc_rel((p)->pData, nDataSize, (ht)->persistent); \
136 (p)->pData = (void *) pemalloc_rel(nDataSize, (ht)->persistent);\
143 (ht)->arBuckets = (Bucket **) pecalloc((ht)->nTableSize, sizeof(Bucket *), (ht)->persistent); \
185 pefree(p->pData, ht->persistent);
187 pefree(p, ht->persistent);
195 ZEND_API int _zend_hash_init(HashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC)
219 ht->persistent = persistent;
226 _zend_hash_init_ex(HashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent, zend_bool bApplyProtection ZEND_FILE_LINE_DC) argument
[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/mssql/
H A Dphp_mssql.c444 le_plink = zend_register_list_destructors_ex(NULL, _close_mssql_plink, "mssql link persistent", module_number);
544 static void php_mssql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) argument
637 persistent=0;
639 if (persistent) {
642 /* try to find if we already have this link in our persistent list */
653 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Too many open persistent links (%ld)", MS_SQL_G(num_persistent));
715 log_error("PHP/MS SQL: Hashed persistent link is not a MS SQL link!",php_rqst->server);
717 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Hashed persistent link is not a MS SQL link!");
755 } else { /* non persistent */
865 Establishes a persistent connectio
[all...]
/PHP_5_6/ext/odbc/
H A Dphp_odbc_includes.h231 int persistent; member in struct:odbc_connection
/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 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_6/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_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...]
/PHP_5_6/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_6/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_6/ext/mysqli/
H A Dphp_mysqli_structs.h131 zend_bool persistent; member in struct:__anon6
H A Dmysqli_nonapi.c67 zend_bool persistent = FALSE; local
157 mysql->persistent = persistent = TRUE;
209 if (persistent && MyG(max_persistent) != -1 &&
212 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Too many open persistent links (%ld)",
220 if (!(mysql->mysql = mysqlnd_init(MYSQLND_CLIENT_KNOWS_RSET_COPY_DATA, persistent))) {
274 /* store persistent connection */
275 if (persistent && (new_connection || is_real_connect)) {
298 mysql->persistent = FALSE;
/PHP_5_6/ext/pdo_pgsql/
H A Dpgsql_driver.c46 static char * _pdo_pgsql_trim_message(const char *message, int persistent) argument
58 tmp = pemalloc(i + 1, persistent);
/PHP_5_6/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_6/ext/mysql/
H A Dphp_mysql.c565 le_plink = zend_register_list_destructors_ex(NULL, _close_mysql_plink, "mysql link persistent", module_number);
720 static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) argument
777 if (persistent) {
846 persistent=0;
848 if (persistent) {
851 /* try to find if we already have this link in our persistent list */
861 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Too many open persistent links (%ld)", MySG(num_persistent));
868 php_error_docref(NULL TSRMLS_CC, E_ERROR, "Out of memory while allocating memory for a persistent link");
880 mysql->conn = mysqlnd_init(MYSQLND_CLIENT_KNOWS_RSET_COPY_DATA, persistent);
917 } else { /* The link is in our list of persistent connection
[all...]
/PHP_5_6/ext/mysqlnd/
H A Dmysqlnd_ps.c92 result->stored_data = (MYSQLND_RES_BUFFERED *) mysqlnd_result_buffered_zval_init(result->field_count, TRUE, result->persistent TSRMLS_CC);
181 result = conn->m->result_init(stmt->result->field_count, stmt->persistent TSRMLS_CC);
440 MYSQLND_RES * result = stmt->conn->m->result_init(stmt_to_prepare->field_count, stmt_to_prepare->persistent TSRMLS_CC);
1498 stmt->param_bind = mnd_pecalloc(stmt->param_count, sizeof(MYSQLND_PARAM_BIND), stmt->persistent);
1640 stmt->result_bind = mnd_pecalloc(stmt->field_count, sizeof(MYSQLND_RESULT_BIND), stmt->persistent);
1642 stmt->result_bind = mnd_perealloc(stmt->result_bind, stmt->field_count * sizeof(MYSQLND_RESULT_BIND), stmt->persistent);
1817 result = stmt->conn->m->result_init(stmt->field_count, stmt->persistent TSRMLS_CC);
1822 result->unbuf = mysqlnd_result_unbuffered_init(stmt->field_count, TRUE, result->persistent TSRMLS_CC);
2137 mnd_pefree(stmt->error_info->error_list, s->persistent);
2216 mnd_pefree(stmt->execute_cmd_buffer.buffer, stmt->persistent);
2237 zend_bool persistent = (s != NULL) ? s->persistent : 0; local
[all...]
H A Dmysqlnd_wireprotocol.h64 zend_bool persistent; member in struct:st_mysqlnd_packet_header
324 PHPAPI MYSQLND_PROTOCOL * mysqlnd_protocol_init(zend_bool persistent TSRMLS_DC);
/PHP_5_6/main/streams/
H A Dplain_wrapper.c416 /* temporary streams are never persistent */
895 int persistent = options & STREAM_OPEN_PERSISTENT; local
913 if (persistent) {

Completed in 78 milliseconds

12