Lines Matching refs:registry

47 PHP_DOM_EXPORT void php_dom_xpath_callbacks_ctor(php_dom_xpath_callbacks *registry)  in php_dom_xpath_callbacks_ctor()  argument
49 registry->php_ns = NULL; in php_dom_xpath_callbacks_ctor()
50 registry->namespaces = NULL; in php_dom_xpath_callbacks_ctor()
51 registry->node_list = NULL; in php_dom_xpath_callbacks_ctor()
54 PHP_DOM_EXPORT void php_dom_xpath_callbacks_clean_node_list(php_dom_xpath_callbacks *registry) in php_dom_xpath_callbacks_clean_node_list() argument
56 if (registry->node_list) { in php_dom_xpath_callbacks_clean_node_list()
57 zend_hash_destroy(registry->node_list); in php_dom_xpath_callbacks_clean_node_list()
58 FREE_HASHTABLE(registry->node_list); in php_dom_xpath_callbacks_clean_node_list()
59 registry->node_list = NULL; in php_dom_xpath_callbacks_clean_node_list()
75 PHP_DOM_EXPORT void php_dom_xpath_callbacks_dtor(php_dom_xpath_callbacks *registry) in php_dom_xpath_callbacks_dtor() argument
77 if (registry->php_ns) { in php_dom_xpath_callbacks_dtor()
78 php_dom_xpath_callback_ns_dtor(registry->php_ns); in php_dom_xpath_callbacks_dtor()
79 efree(registry->php_ns); in php_dom_xpath_callbacks_dtor()
81 if (registry->namespaces) { in php_dom_xpath_callbacks_dtor()
83 ZEND_HASH_MAP_FOREACH_PTR(registry->namespaces, ns) { in php_dom_xpath_callbacks_dtor()
88 zend_hash_destroy(registry->namespaces); in php_dom_xpath_callbacks_dtor()
89 FREE_HASHTABLE(registry->namespaces); in php_dom_xpath_callbacks_dtor()
91 php_dom_xpath_callbacks_clean_node_list(registry); in php_dom_xpath_callbacks_dtor()
102 PHP_DOM_EXPORT void php_dom_xpath_callbacks_get_gc(php_dom_xpath_callbacks *registry, zend_get_gc_b… in php_dom_xpath_callbacks_get_gc() argument
104 if (registry->php_ns) { in php_dom_xpath_callbacks_get_gc()
105 php_dom_xpath_callback_ns_get_gc(registry->php_ns, gc_buffer); in php_dom_xpath_callbacks_get_gc()
107 if (registry->namespaces) { in php_dom_xpath_callbacks_get_gc()
109 ZEND_HASH_MAP_FOREACH_PTR(registry->namespaces, ns) { in php_dom_xpath_callbacks_get_gc()
115 …hp_dom_xpath_callbacks_get_gc_for_whole_object(php_dom_xpath_callbacks *registry, zend_object *obj… in php_dom_xpath_callbacks_get_gc_for_whole_object() argument
117 if (registry->php_ns || registry->namespaces) { in php_dom_xpath_callbacks_get_gc_for_whole_object()
119 php_dom_xpath_callbacks_get_gc(registry, gc_buffer); in php_dom_xpath_callbacks_get_gc_for_whole_object()
166 …xpath_callbacks_delayed_lib_registration(const php_dom_xpath_callbacks* registry, void *ctxt, php_… in php_dom_xpath_callbacks_delayed_lib_registration() argument
168 if (registry->namespaces) { in php_dom_xpath_callbacks_delayed_lib_registration()
171 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(registry->namespaces, namespace, ns) { in php_dom_xpath_callbacks_delayed_lib_registration()
262 …_callback_ns *php_dom_xpath_callbacks_ensure_ns(php_dom_xpath_callbacks *registry, zend_string *ns) in php_dom_xpath_callbacks_ensure_ns() argument
265 if (!registry->php_ns) { in php_dom_xpath_callbacks_ensure_ns()
266 registry->php_ns = emalloc(sizeof(php_dom_xpath_callback_ns)); in php_dom_xpath_callbacks_ensure_ns()
267 php_dom_xpath_callback_ns_ctor(registry->php_ns); in php_dom_xpath_callbacks_ensure_ns()
269 return registry->php_ns; in php_dom_xpath_callbacks_ensure_ns()
271 if (!registry->namespaces) { in php_dom_xpath_callbacks_ensure_ns()
273 registry->namespaces = zend_new_array(1); in php_dom_xpath_callbacks_ensure_ns()
275 php_dom_xpath_callback_ns *namespace = zend_hash_find_ptr(registry->namespaces, ns); in php_dom_xpath_callbacks_ensure_ns()
279 zend_hash_add_new_ptr(registry->namespaces, ns, namespace); in php_dom_xpath_callbacks_ensure_ns()
285 … php_dom_xpath_callbacks_update_method_handler(php_dom_xpath_callbacks* registry, xmlXPathContextP… in php_dom_xpath_callbacks_update_method_handler() argument
287 php_dom_xpath_callback_ns *namespace = php_dom_xpath_callbacks_ensure_ns(registry, ns); in php_dom_xpath_callbacks_update_method_handler()
291 …m_xpath_callbacks_update_single_method_handler(php_dom_xpath_callbacks* registry, xmlXPathContextP… in php_dom_xpath_callbacks_update_single_method_handler() argument
297 php_dom_xpath_callback_ns *namespace = php_dom_xpath_callbacks_ensure_ns(registry, ns); in php_dom_xpath_callbacks_update_single_method_handler()