| /PHP_5_3/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_5_3/ext/dba/ |
| H A D | dba.c | 489 le_pdb = zend_register_list_destructors_ex(dba_close_pe_rsrc, dba_close_rsrc, "dba persistent", module_number); 607 static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, int persistent) argument 620 int persistent_flag = persistent ? STREAM_OPEN_PERSISTENT : 0; 640 if (persistent) { 653 /* try to find if we already have this link in our persistent list */ 803 info = pemalloc(sizeof(dba_info), persistent); 805 info->path = pestrdup(Z_STRVAL_PP(args[0]), persistent); 809 info->flags = (hptr->flags & ~DBA_LOCK_ALL) | (lock_flag & DBA_LOCK_ALL) | (persistent ? DBA_PERSISTENT : 0); 841 if (!persistent) { 844 info->lock.name = pestrdup(opened_path, persistent); [all...] |
| /PHP_5_3/ext/dba/libinifile/ |
| H A D | inifile.c | 83 inifile * inifile_alloc(php_stream *fp, int readonly, int persistent TSRMLS_DC) 94 dba = pemalloc(sizeof(inifile), persistent); 103 void inifile_free(inifile *dba, int persistent) argument 108 pefree(dba, persistent);
|
| /PHP_5_3/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_5_3/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_5_3/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_5_3/ext/mysqli/ |
| H A D | mysqli_nonapi.c | 66 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 D | php_mysqli_structs.h | 125 zend_bool persistent; member in struct:__anon103
|
| /PHP_5_3/ext/odbc/ |
| H A D | php_odbc_includes.h | 231 int persistent; member in struct:odbc_connection
|
| /PHP_5_3/ext/standard/ |
| 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 */
|
| 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...] |
| /PHP_5_3/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_5_3/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); 272 pefree(data->inbuf, data->persistent); 273 pefree(data->outbuf, data->persistent); 274 pefree(data, data->persistent); 288 static php_stream_filter *php_zlib_filter_create(const char *filtername, zval *filterparams, int persistent TSRMLS_D [all...] |
| /PHP_5_3/main/streams/ |
| H A D | plain_wrapper.c | 415 /* temporary streams are never persistent */ 901 int persistent = options & STREAM_OPEN_PERSISTENT; local 919 if (persistent) {
|
| /PHP_5_3/Zend/ |
| H A D | zend_hash.c | 109 pefree_rel((p)->pData, (ht)->persistent); \ 115 (p)->pData = (void *) pemalloc_rel(nDataSize, (ht)->persistent); \ 118 (p)->pData = (void *) perealloc_rel((p)->pData, nDataSize, (ht)->persistent); \ 129 (p)->pData = (void *) pemalloc_rel(nDataSize, (ht)->persistent);\ 131 pefree_rel(p, (ht)->persistent); \ 140 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) 165 ht->persistent = persistent; 170 if (persistent) { 187 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 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) 304 #define ZEND_INIT_SYMTABLE_EX(ht, n, persistent) \ 305 zend_hash_init(ht, n, NULL, ZVAL_PTR_DTOR, persistent)
|
| 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);\ 116 pefree(current, l->persistent); 149 pefree(old_tail, l->persistent); 164 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 30 stack->top_element = stack->elements = (void **) pemalloc(sizeof(void *)*PTR_STACK_BLOCK_SIZE, persistent); 33 stack->persistent = persistent; 80 pefree(stack->elements, stack->persistent); 102 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); 51 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);
|
| /PHP_5_3/ext/mysqlnd/ |
| H A D | mysqlnd_debug.c | 852 void * _mysqlnd_pemalloc(size_t size, zend_bool persistent MYSQLND_MEM_D) 856 long * threshold = persistent? &MYSQLND_G(debug_malloc_fail_threshold):&MYSQLND_G(debug_emalloc_fail_threshold); 864 ret = pemalloc(REAL_SIZE(size), persistent); 872 DBG_INF_FMT("size=%lu ptr=%p persistent=%u", size, ret, persistent); 875 enum mysqlnd_collected_stats s1 = persistent? STAT_MEM_MALLOC_COUNT:STAT_MEM_EMALLOC_COUNT; 876 enum mysqlnd_collected_stats s2 = persistent? STAT_MEM_MALLOC_AMOUNT:STAT_MEM_EMALLOC_AMOUNT; 920 void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D) 924 long * threshold = persistent? &MYSQLND_G(debug_calloc_fail_threshold):&MYSQLND_G(debug_ecalloc_fail_threshold); 932 ret = pecalloc(nmemb, REAL_SIZE(size), persistent); 1062 pefree(REAL_PTR(ptr), persistent); local [all...] |
| H A D | mysqlnd_wireprotocol.h | 64 zend_bool persistent; member in struct:st_mysqlnd_packet_header 262 zend_bool persistent, 269 zend_bool persistent, 274 PHPAPI MYSQLND_PROTOCOL * mysqlnd_protocol_init(zend_bool persistent TSRMLS_DC);
|
| H A D | mysqlnd_ps.c | 163 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); 756 result->stored_data->persistent, 1488 stmt->param_bind = mnd_pecalloc(stmt->param_count, sizeof(MYSQLND_PARAM_BIND), stmt->persistent); 1631 stmt->result_bind = mnd_pecalloc(stmt->field_count, sizeof(MYSQLND_RESULT_BIND), stmt->persistent); 1633 stmt->result_bind = mnd_perealloc(stmt->result_bind, stmt->field_count * sizeof(MYSQLND_RESULT_BIND), stmt->persistent); 1807 result = stmt->conn->m->result_init(stmt->field_count, stmt->persistent TSRMLS_CC); 2205 mnd_pefree(stmt->execute_cmd_buffer.buffer, stmt->persistent); 2226 zend_bool persistent = (s != NULL) ? s->persistent local [all...] |
| /PHP_5_3/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);
|