Lines Matching refs:persistent

148 static zend_string *browscap_convert_pattern(const zend_string *pattern, bool persistent) /* {{{ */  in browscap_convert_pattern()  argument
154 res = zend_string_alloc(browscap_compute_regex_len(pattern), persistent); in browscap_convert_pattern()
217 browscap_parser_ctx *ctx, zend_string *str, bool persistent) { in browscap_intern_str() argument
223 if (persistent) { in browscap_intern_str()
233 browscap_parser_ctx *ctx, zend_string *str, bool persistent) { in browscap_intern_str_ci() argument
245 interned = zend_string_init(ZSTR_VAL(lcname), ZSTR_LEN(lcname), persistent); in browscap_intern_str_ci()
246 if (persistent) { in browscap_intern_str_ci()
257 browser_data *bdata, zend_string *key, zend_string *value, bool persistent) { in browscap_add_kv() argument
260 bdata->kv = safe_perealloc(bdata->kv, sizeof(browscap_kv), bdata->kv_size, 0, persistent); in browscap_add_kv()
309 bool persistent = GC_FLAGS(bdata->htab) & IS_ARRAY_PERSISTENT; in php_browscap_parser_cb() local
333 new_value = browscap_intern_str(ctx, Z_STR_P(arg2), persistent); in php_browscap_parser_cb()
353 zend_string *new_key = browscap_intern_str_ci(ctx, Z_STR_P(arg1), persistent); in php_browscap_parser_cb()
354 browscap_add_kv(bdata, new_key, new_value, persistent); in php_browscap_parser_cb()
372 if (persistent) { in php_browscap_parser_cb()
382 = pemalloc(sizeof(browscap_entry), persistent); in php_browscap_parser_cb()
405 static zend_result browscap_read_file(char *filename, browser_data *browdata, bool persistent) /* {… in browscap_read_file() argument
422 browdata->htab = pemalloc(sizeof *browdata->htab, persistent); in browscap_read_file()
424 persistent ? browscap_entry_dtor_persistent : browscap_entry_dtor, persistent); in browscap_read_file()
428 browdata->kv = pemalloc(sizeof(browscap_kv) * browdata->kv_size, persistent); in browscap_read_file()
436 zend_hash_init(&ctx.str_interned, 8, NULL, NULL, persistent); in browscap_read_file()
438 zend_parse_ini_file(&fh, persistent, ZEND_INI_SCANNER_RAW, in browscap_read_file()
462 static void browscap_bdata_dtor(browser_data *bdata, bool persistent) /* {{{ */ in browscap_bdata_dtor() argument
468 pefree(bdata->htab, persistent); in browscap_bdata_dtor()
475 pefree(bdata->kv, persistent); in browscap_bdata_dtor()