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

12

/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_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_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_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);
148 pefree(old_tail, l->persistent);
156 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_ts_hash.c62 ZEND_API void _zend_ts_hash_init(TsHashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC)
69 _zend_hash_init(TS_HASH(ht), nSize, pDestructor, persistent ZEND_FILE_LINE_RELAY_CC);
72 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) argument
79 _zend_hash_init_ex(TS_HASH(ht), nSize, pDestructor, persistent, bApplyProtection ZEND_FILE_LINE_RELAY_CC); local
H A Dzend_hash.c100 ZEND_API void _zend_hash_init(HashTable *ht, uint32_t nSize, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC)
124 if (persistent) {
166 ZEND_API void _zend_hash_init_ex(HashTable *ht, uint32_t nSize, dtor_func_t pDestructor, zend_bool persistent, zend_bool bApplyProtection ZEND_FILE_LINE_DC) argument
168 _zend_hash_init(ht, nSize, pDestructor, persistent ZEND_FILE_LINE_CC);
/PHP_TRUNK/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_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/mysqli/
H A Dphp_mysqli_structs.h131 zend_bool persistent; member in struct:__anon94
H A Dmysqli_nonapi.c66 zend_bool persistent = FALSE; local
155 mysql->persistent = persistent = TRUE;
207 if (persistent && MyG(max_persistent) != -1 &&
210 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Too many open persistent links (%pd)",
218 if (!(mysql->mysql = mysqlnd_init(MYSQLND_CLIENT_KNOWS_RSET_COPY_DATA, persistent))) {
272 /* store persistent connection */
273 if (persistent && (new_connection || is_real_connect)) {
296 mysql->persistent = FALSE;
/PHP_TRUNK/ext/odbc/
H A Dphp_odbc_includes.h232 int persistent; member in struct:odbc_connection
/PHP_TRUNK/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_TRUNK/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_TRUNK/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_TRUNK/ext/standard/
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 */
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...]
/PHP_TRUNK/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_TRUNK/ext/interbase/
H A Dinterbase.c883 static void _php_ibase_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) /* {{{ */ argument
939 if ((!persistent && xlink->type == le_link) || xlink->type == le_plink) {
955 /* ... or a persistent one */
987 /* use non-persistent if allowed number of persistent links is exceeded */
988 if (!persistent || ((l = INI_INT("ibase.max_persistent") != -1) && IBG(num_persistent) >= l)) {
1046 Open a persistent connection to an InterBase database */
/PHP_TRUNK/ext/mysql/
H A Dphp_mysql.c568 le_plink = zend_register_list_destructors_ex(NULL, _close_mysql_plink, "mysql link persistent", module_number);
723 static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) argument
782 if (persistent) {
853 persistent = 0;
856 if (persistent) {
860 /* try to find if we already have this link in our persistent list */
871 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Too many open persistent links (%pd)", MySG(num_persistent));
879 "Out of memory while allocating memory for a persistent link");
891 mysql->conn = mysqlnd_init(MYSQLND_CLIENT_KNOWS_RSET_COPY_DATA, persistent);
933 } else { /* The link is in our list of persistent connection
[all...]
/PHP_TRUNK/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;
652 if (persistent) {
665 /* try to find if we already have this link in our persistent list */
816 info = pemalloc(sizeof(dba_info), persistent);
818 info->path = pestrdup(Z_STRVAL(args[0]), persistent);
822 info->flags = (hptr->flags & ~DBA_LOCK_ALL) | (lock_flag & DBA_LOCK_ALL) | (persistent ? DBA_PERSISTENT : 0);
854 if (!persistent) {
858 info->lock.name = pestrdup(opened_path, persistent);
[all...]
/PHP_TRUNK/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);
1510 stmt->param_bind = mnd_pecalloc(stmt->param_count, sizeof(MYSQLND_PARAM_BIND), stmt->persistent);
1652 stmt->result_bind = mnd_pecalloc(stmt->field_count, sizeof(MYSQLND_RESULT_BIND), stmt->persistent);
1654 stmt->result_bind = mnd_perealloc(stmt->result_bind, stmt->field_count * sizeof(MYSQLND_RESULT_BIND), stmt->persistent);
1829 result = stmt->conn->m->result_init(stmt->field_count, stmt->persistent TSRMLS_CC);
1834 result->unbuf = mysqlnd_result_unbuffered_init(stmt->field_count, TRUE, result->persistent TSRMLS_CC);
2093 mnd_pefree(stmt->error_info->error_list, s->persistent);
2208 mnd_pefree(stmt->execute_cmd_buffer.buffer, stmt->persistent);
2229 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
323 PHPAPI MYSQLND_PROTOCOL * mysqlnd_protocol_init(zend_bool persistent TSRMLS_DC);
/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/main/streams/
H A Dplain_wrapper.c422 /* temporary streams are never persistent */
901 int persistent = options & STREAM_OPEN_PERSISTENT; local
919 if (persistent) {

Completed in 47 milliseconds

12