| /PHP_TRUNK/Zend/ |
| H A D | zend_llist.c | 26 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 D | zend_llist.h | 43 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 D | zend_ptr_stack.c | 28 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 D | zend_ptr_stack.h | 29 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 D | zend_ts_hash.c | 62 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);
|
| H A D | zend_hash.h | 76 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) 306 #define ZEND_INIT_SYMTABLE_EX(ht, n, persistent) \ 307 zend_hash_init(ht, n, NULL, ZVAL_PTR_DTOR, persistent)
|
| H A D | zend_hash.c | 110 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...] |
| /PHP_TRUNK/ext/bz2/ |
| H A D | bz2_filter.c | 37 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_TRUNK/ext/dba/libinifile/ |
| H A D | inifile.c | 82 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/interbase/ |
| H A D | interbase.c | 895 static void _php_ibase_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) /* {{{ */ argument 952 if (zend_list_find(xlink, &type) && ((!persistent && type == le_link) || type == le_plink)) { 960 /* ... or a persistent one */ 995 /* use non-persistent if allowed number of persistent links is exceeded */ 996 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/mcrypt/ |
| H A D | mcrypt_filter.c | 33 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/mssql/ |
| H A D | php_mssql.c | 439 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_TRUNK/ext/mysqli/ |
| H A D | php_mysqli_structs.h | 127 zend_bool persistent; member in struct:__anon125
|
| H A D | mysqli_nonapi.c | 67 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(persistent))) { 274 /* store persistent connection */ 275 if (persistent && (new_connection || is_real_connect)) { 298 mysql->persistent = FALSE;
|
| /PHP_TRUNK/ext/odbc/ |
| H A D | php_odbc_includes.h | 231 int persistent; member in struct:odbc_connection
|
| /PHP_TRUNK/ext/pdo_pgsql/ |
| H A D | pgsql_driver.c | 44 static char * _pdo_pgsql_trim_message(const char *message, int persistent) argument 56 tmp = pemalloc(i + 1, persistent);
|
| /PHP_TRUNK/ext/standard/ |
| H A D | browscap.c | 85 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 D | fsock.c | 32 static void php_fsockopen_stream(INTERNAL_FUNCTION_PARAMETERS, int persistent) argument 54 if (persistent) { 127 Open persistent Internet or Unix domain socket connection */
|
| /PHP_TRUNK/ext/sybase_ct/ |
| H A D | php_sybase_ct.c | 336 /* 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/main/streams/ |
| H A D | plain_wrapper.c | 420 /* temporary streams are never persistent */ 899 int persistent = options & STREAM_OPEN_PERSISTENT; local 917 if (persistent) {
|
| /PHP_TRUNK/ext/zlib/ |
| H A D | zlib_filter.c | 28 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/mysqlnd/ |
| H A D | mysqlnd_wireprotocol.h | 64 zend_bool persistent; member in struct:st_mysqlnd_packet_header 319 PHPAPI MYSQLND_PROTOCOL * mysqlnd_protocol_init(zend_bool persistent TSRMLS_DC);
|
| H A D | mysqlnd_ps.c | 162 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); 1466 stmt->param_bind = mnd_pecalloc(stmt->param_count, sizeof(MYSQLND_PARAM_BIND), stmt->persistent); 1608 stmt->result_bind = mnd_pecalloc(stmt->field_count, sizeof(MYSQLND_RESULT_BIND), stmt->persistent); 1610 stmt->result_bind = mnd_perealloc(stmt->result_bind, stmt->field_count * sizeof(MYSQLND_RESULT_BIND), stmt->persistent); 1784 result = stmt->conn->m->result_init(stmt->field_count, stmt->persistent TSRMLS_CC); 2105 mnd_pefree(stmt->error_info->error_list, s->persistent); 2184 mnd_pefree(stmt->execute_cmd_buffer.buffer, stmt->persistent); 2205 zend_bool persistent = (s != NULL) ? s->persistent local [all...] |
| /PHP_TRUNK/ext/dba/ |
| H A D | dba.c | 495 le_pdb = zend_register_list_destructors_ex(dba_close_pe_rsrc, dba_close_rsrc, "dba persistent", module_number); 601 static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, int persistent) argument 614 int persistent_flag = persistent ? STREAM_OPEN_PERSISTENT : 0; 634 if (persistent) { 647 /* try to find if we already have this link in our persistent list */ 797 info = pemalloc(sizeof(dba_info), persistent); 799 info->path = pestrdup(Z_STRVAL_PP(args[0]), persistent); 803 info->flags = (hptr->flags & ~DBA_LOCK_ALL) | (lock_flag & DBA_LOCK_ALL) | (persistent ? DBA_PERSISTENT : 0); 835 if (!persistent) { 838 info->lock.name = pestrdup(opened_path, persistent); [all...] |
| /PHP_TRUNK/ext/mysql/ |
| H A D | php_mysql.c | 565 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 = mysql_init(persistent); 917 } else { /* The link is in our list of persistent connection [all...] |