Lines Matching refs:ctx

224 		browscap_parser_ctx *ctx, zend_string *str, bool persistent) {  in browscap_intern_str()  argument
225 zend_string *interned = zend_hash_find_ptr(&ctx->str_interned, str); in browscap_intern_str()
233 zend_hash_add_new_ptr(&ctx->str_interned, interned, interned); in browscap_intern_str()
240 browscap_parser_ctx *ctx, zend_string *str, bool persistent) { in browscap_intern_str_ci() argument
247 interned = zend_hash_find_ptr(&ctx->str_interned, lcname); in browscap_intern_str_ci()
256 zend_hash_add_new_ptr(&ctx->str_interned, interned, interned); in browscap_intern_str_ci()
302 browscap_parser_ctx *ctx = arg; in php_browscap_parser_cb() local
303 browser_data *bdata = ctx->bdata; in php_browscap_parser_cb()
312 if (ctx->current_entry != NULL && arg2) { in php_browscap_parser_cb()
328 new_value = browscap_intern_str(ctx, Z_STR_P(arg2), persistent); in php_browscap_parser_cb()
333 if (ctx->current_section_name != NULL && in php_browscap_parser_cb()
334 zend_string_equals_ci(ctx->current_section_name, Z_STR_P(arg2)) in php_browscap_parser_cb()
338 "(in file %s)", ZSTR_VAL(ctx->current_section_name), INI_STR("browscap")); in php_browscap_parser_cb()
342 if (ctx->current_entry->parent) { in php_browscap_parser_cb()
343 zend_string_release(ctx->current_entry->parent); in php_browscap_parser_cb()
346 ctx->current_entry->parent = new_value; in php_browscap_parser_cb()
348 new_key = browscap_intern_str_ci(ctx, Z_STR_P(arg1), persistent); in php_browscap_parser_cb()
350 ctx->current_entry->kv_end = bdata->kv_used; in php_browscap_parser_cb()
376 entry = ctx->current_entry in php_browscap_parser_cb()
380 if (ctx->current_section_name) { in php_browscap_parser_cb()
381 zend_string_release(ctx->current_section_name); in php_browscap_parser_cb()
383 ctx->current_section_name = zend_string_copy(pattern); in php_browscap_parser_cb()
403 browscap_parser_ctx ctx = {0}; in browscap_read_file() local
426 ctx.bdata = browdata; in browscap_read_file()
427 ctx.current_entry = NULL; in browscap_read_file()
428 ctx.current_section_name = NULL; in browscap_read_file()
431 zend_hash_init(&ctx.str_interned, 8, NULL, NULL, persistent); in browscap_read_file()
434 (zend_ini_parser_cb_t) php_browscap_parser_cb, &ctx); in browscap_read_file()
437 if (ctx.current_section_name) { in browscap_read_file()
438 zend_string_release(ctx.current_section_name); in browscap_read_file()
440 zend_hash_destroy(&ctx.str_interned); in browscap_read_file()