Lines Matching refs:interned
218 zend_string *interned = zend_hash_find_ptr(&ctx->str_interned, str); in browscap_intern_str() local
219 if (interned) { in browscap_intern_str()
220 zend_string_addref(interned); in browscap_intern_str()
222 interned = zend_string_copy(str); in browscap_intern_str()
224 interned = zend_new_interned_string(interned); in browscap_intern_str()
226 zend_hash_add_new_ptr(&ctx->str_interned, interned, interned); in browscap_intern_str()
229 return interned; in browscap_intern_str()
235 zend_string *interned; in browscap_intern_str_ci() local
240 interned = zend_hash_find_ptr(&ctx->str_interned, lcname); in browscap_intern_str_ci()
242 if (interned) { in browscap_intern_str_ci()
243 zend_string_addref(interned); in browscap_intern_str_ci()
245 interned = zend_string_init(ZSTR_VAL(lcname), ZSTR_LEN(lcname), persistent); in browscap_intern_str_ci()
247 interned = zend_new_interned_string(interned); in browscap_intern_str_ci()
249 zend_hash_add_new_ptr(&ctx->str_interned, interned, interned); in browscap_intern_str_ci()
253 return interned; in browscap_intern_str_ci()