Lines Matching refs:persistent

150 static zend_string *browscap_convert_pattern(zend_string *pattern, int persistent) /* {{{ */  in browscap_convert_pattern()  argument
158 res = zend_string_alloc(browscap_compute_regex_len(pattern), persistent); in browscap_convert_pattern()
224 browscap_parser_ctx *ctx, zend_string *str, bool persistent) { in browscap_intern_str() argument
230 if (persistent) { in browscap_intern_str()
240 browscap_parser_ctx *ctx, zend_string *str, bool persistent) { in browscap_intern_str_ci() argument
252 interned = zend_string_init(ZSTR_VAL(lcname), ZSTR_LEN(lcname), persistent); in browscap_intern_str_ci()
253 if (persistent) { in browscap_intern_str_ci()
264 browser_data *bdata, zend_string *key, zend_string *value, bool persistent) { in browscap_add_kv() argument
267 bdata->kv = safe_perealloc(bdata->kv, sizeof(browscap_kv), bdata->kv_size, 0, persistent); in browscap_add_kv()
304 int persistent = GC_FLAGS(bdata->htab) & IS_ARRAY_PERSISTENT; in php_browscap_parser_cb() local
328 new_value = browscap_intern_str(ctx, Z_STR_P(arg2), persistent); in php_browscap_parser_cb()
348 new_key = browscap_intern_str_ci(ctx, Z_STR_P(arg1), persistent); in php_browscap_parser_cb()
349 browscap_add_kv(bdata, new_key, new_value, persistent); in php_browscap_parser_cb()
367 if (persistent) { in php_browscap_parser_cb()
377 = pemalloc(sizeof(browscap_entry), persistent); in php_browscap_parser_cb()
400 static int browscap_read_file(char *filename, browser_data *browdata, int persistent) /* {{{ */ in browscap_read_file() argument
417 browdata->htab = pemalloc(sizeof *browdata->htab, persistent); in browscap_read_file()
419 persistent ? browscap_entry_dtor_persistent : browscap_entry_dtor, persistent); in browscap_read_file()
423 browdata->kv = pemalloc(sizeof(browscap_kv) * browdata->kv_size, persistent); in browscap_read_file()
431 zend_hash_init(&ctx.str_interned, 8, NULL, NULL, persistent); in browscap_read_file()
433 zend_parse_ini_file(&fh, persistent, ZEND_INI_SCANNER_RAW, in browscap_read_file()
457 static void browscap_bdata_dtor(browser_data *bdata, int persistent) /* {{{ */ in browscap_bdata_dtor() argument
463 pefree(bdata->htab, persistent); in browscap_bdata_dtor()
470 pefree(bdata->kv, persistent); in browscap_bdata_dtor()