Home
last modified time | relevance | path

Searched refs:ns (Results 1 – 25 of 191) sorted by relevance

12345678

/php-src/ext/dom/
H A Dnamespace_compat.c102 xmlNsPtr ns = emalloc(sizeof(*ns)); in dom_create_owned_ns() local
103 memset(ns, 0, sizeof(*ns)); in dom_create_owned_ns()
111 return ns; in dom_create_owned_ns()
140 return ns; in php_dom_libxml_ns_mapper_get_ns()
145 xmlNsPtr ns; in php_dom_libxml_ns_mapper_get_ns_raw_prefix_string() local
154 return ns; in php_dom_libxml_ns_mapper_get_ns_raw_prefix_string()
164 return ns; in php_dom_libxml_ns_mapper_get_ns_raw_strings_ex()
210 return ns; in php_dom_libxml_ns_mapper_store_and_normalize_parsed_ns()
263 ns = next; in php_dom_ns_compat_mark_attribute_list()
304 xmlNsPtr ns = nodep->ns; in php_dom_ns_is_fast() local
[all …]
H A Dxpath_callbacks.c39 ns->mode = PHP_DOM_REG_FUNC_MODE_NONE; in php_dom_xpath_callback_ns_ctor()
44 zend_hash_destroy(&ns->functions); in php_dom_xpath_callback_ns_dtor()
82 php_dom_xpath_callback_ns *ns; in php_dom_xpath_callbacks_dtor() local
85 efree(ns); in php_dom_xpath_callbacks_dtor()
108 php_dom_xpath_callback_ns *ns; in php_dom_xpath_callbacks_get_gc() local
170 php_dom_xpath_callback_ns *ns; in php_dom_xpath_callbacks_delayed_lib_registration() local
181 php_dom_xpath_callback_ns* ns, in php_dom_xpath_callback_ns_update_method_handler() argument
264 if (ns == NULL) { in php_dom_xpath_callbacks_ensure_ns()
306 register_func(ctxt, ns, name); in php_dom_xpath_callbacks_update_single_method_handler()
395 if (UNEXPECTED(ns == NULL)) { in php_dom_xpath_callback_dispatch()
[all …]
H A Dprivate_data.c156 xmlNsPtr ns = pemalloc(sizeof(*ns), true); in dom_add_element_ns_hook() local
159 memset(ns, 0, sizeof(*ns)); in dom_add_element_ns_hook()
160 ns->prefix = xmlStrdup(element->ns->prefix); in dom_add_element_ns_hook()
161 ns->href = xmlStrdup(element->ns->href); in dom_add_element_ns_hook()
162 ns->type = XML_LOCAL_NAMESPACE; in dom_add_element_ns_hook()
163 ns->_private = (void *) ((uintptr_t) private_data | LIBXML_NS_TAG_HOOK); in dom_add_element_ns_hook()
164 element->ns = ns; in dom_add_element_ns_hook()
166 php_libxml_set_old_ns(element->doc, ns); in dom_add_element_ns_hook()
H A Dxml_serializer.c167 const xmlChar *ns in dom_xml_local_prefix_map_add() argument
188 const xmlChar *ns in dom_xml_local_prefix_map_conflicts() argument
212 const xmlChar *ns, in dom_xml_ns_prefix_map_add() argument
219 if (ns == NULL) { in dom_xml_ns_prefix_map_add()
220 ns = BAD_CAST ""; in dom_xml_ns_prefix_map_add()
295 const xmlChar *ns, in dom_prefix_found_in_ns_prefix_map() argument
399 if (ns == NULL) { in dom_retrieve_a_preferred_prefix_string()
579 return attr->ns == NULL ? NULL : attr->ns->href; in dom_xml_attribute_namespace()
625 if (attr->ns != NULL && attr->ns->prefix != NULL) { in dom_xml_serialize_attribute_node()
698 if (attr->ns == NULL || attr->ns->href == NULL) { in dom_xml_create_localname_set_key()
[all …]
/php-src/ext/simplexml/tests/
H A Dbug72971.phpt8 $xml = new SimpleXMLElement('<root xmlns:ns="ns"><foo>bar</foo><ns:foo>ns:bar</ns:foo><ns:foo2>ns:b…
11 var_dump($xml->children('ns'));
18 string(6) "ns:bar"
20 string(7) "ns:bar2"
H A Dbug72971_2.phpt8 $xml = new SimpleXMLElement('<root xmlns:ns="ns"><foo>bar</foo><ns:foo>ns:bar</ns:foo></root>');
12 var_dump($xml->children('ns')->foo);
14 $xml->children('ns')->foo = 'ns:new-bar';
16 var_dump($xml->children('ns')->foo);
26 string(6) "ns:bar"
34 string(10) "ns:new-bar"
H A Dprofile11.phpt9 <root xmlns:reserved="reserved-ns" xmlns:special="special-ns">
15 var_dump($root->children('reserved-ns')->child);
16 var_dump($root->children('special-ns')->child);
17 var_dump((string)$root->children('reserved-ns')->child);
18 var_dump((string)$root->children('special-ns')->child);
/php-src/Zend/tests/
H A Dbug42820.phpt5 namespace ns;
10 var_dump(defined('ns\\ok'));
11 var_dump(defined('ns\\bug'));
12 var_dump(defined('\\ns\\ok'));
13 var_dump(defined('\\ns\\bug'));
14 var_dump(defined('ns\\foo::ok'));
15 var_dump(defined('ns\\foo::bug'));
16 var_dump(defined('\\ns\\foo::ok'));
17 var_dump(defined('\\ns\\foo::bug'));
18 var_dump(defined('ns\\bar::bug'));
[all …]
/php-src/ext/dom/tests/modern/spec/
H A Dbug47847.phpt9 <ns:container xmlns:ns="http://php.net">
10 <ns:inner xmlns="http://php.net">
11 <ns:WATCH-MY-NAMESPACE xmlns=""/>
12 </ns:inner>
13 </ns:container>
26 <ns:inner xmlns:ns="http://php.net" xmlns="http://php.net">
28 </ns:inner>
29 string(2) "ns"
/php-src/ext/dom/tests/
H A Dbug34276.phpt9 <foo xmlns="http://www.example.com/ns/foo"
10 xmlns:fubar="http://www.example.com/ns/fubar" attra="attra" />
23 var_dump($foo->hasAttributeNS('http://www.example.com/ns/foo', 'attra'));
24 var_dump($foo->getAttributeNS('http://www.example.com/ns/foo', 'attra'));
26 $foo->setAttributeNS('http://www.example.com/ns/foo', 'attra', 'attranew');
27 $foo->setAttributeNS('http://www.example.com/ns/fubar', 'attrb', 'attrbnew');
28 $foo->setAttributeNS('http://www.example.com/ns/foo', 'attrc', 'attrc');
30 var_dump($foo->getAttributeNS('http://www.example.com/ns/foo', 'attra'));
31 var_dump($foo->getAttributeNS('http://www.example.com/ns/fubar', 'attrb'));
32 var_dump($foo->getAttributeNS('http://www.example.com/ns/foo', 'attrc'));
[all …]
H A Dcanonicalization.phpt9 <foo xmlns="http://www.example.com/ns/foo"
10 xmlns:fubar="http://www.example.com/ns/fubar" xmlns:test="urn::test"><contain>
13 <fubar:bar xmlns:fubar="http://www.example.com/ns/fubar"><test3 /></fubar:bar>
44 'namespaces'=>array('a'=>'http://www.example.com/ns/foo')),
52 <contain xmlns="http://www.example.com/ns/foo" xmlns:fubar="http://www.example.com/ns/fubar" xmlns:…
60 <contain xmlns="http://www.example.com/ns/foo">
63 <fubar:bar xmlns:fubar="http://www.example.com/ns/fubar"><test3></test3></fubar:bar>
68 <contain xmlns="http://www.example.com/ns/foo" xmlns:fubar="http://www.example.com/ns/fubar" xmlns:…
76 <contain xmlns="http://www.example.com/ns/foo">
84 <foo xmlns="http://www.example.com/ns/foo"><contain>
[all …]
H A Dbug47531_a.phpt10 <container xmlns:foo="some:ns">
19 <p xmlns:foo="other:ns">
44 <foo:first xmlns:foo="some:ns"/>
46 <foo:child1 xmlns:foo="some:ns"/>
47 <foo:child2 xmlns:foo="some:ns"/>
50 <foo:child4 xmlns:foo="some:ns"/>
51 <foo:child5 xmlns:foo="some:ns">
52 <p xmlns:foo="other:ns">
62 <child7 xmlns:foo="some:ns" foo:foo="bar">
H A Dimport_attribute_namespace.phpt11 <container xmlns:foo="some:ns" foo:bar="1"/>
20 $imported = $dom2->importNode($dom->documentElement->getAttributeNodeNs("some:ns", "bar"));
31 string(7) "some:ns"
33 string(7) "some:ns"
35 <container xmlns:foo="some:ns" foo:bar="1"/>
37 <container xmlns:foo="some:other" xmlns:default="some:ns" default:bar="1"/>
H A Dclone_attribute_namespace_01.phpt11 $dom->documentElement->setAttributeNs("some:ns", "foo:bar", "value");
13 $attr = $dom->documentElement->getAttributeNodeNs("some:ns", "bar");
25 $dom->documentElement->removeAttributeNs("some:ns", "bar");
34 $dom->documentElement->removeAttributeNs("some:ns", "bar");
61 string(7) "some:ns"
64 <container xmlns:foo="some:ns"/>
66 <container xmlns:foo="some:ns" foo:bar="value"/>
71 <container><child xmlns:foo="some:ns" foo:bar="value"/></container>
76 <container><child xmlns:foo="some:ns" foo:bar="value"/></container>
81 <container><child xmlns:foo="some:ns" foo:bar="value"/></container>
[all …]
/php-src/Zend/
H A Dzend_constants.h57 …ine REGISTER_NS_NULL_CONSTANT(ns, name, flags) zend_register_null_constant(ZEND_NS_NAME(ns, name)… argument
58 … REGISTER_NS_BOOL_CONSTANT(ns, name, bval, flags) zend_register_bool_constant(ZEND_NS_NAME(ns, na… argument
59 … REGISTER_NS_LONG_CONSTANT(ns, name, lval, flags) zend_register_long_constant(ZEND_NS_NAME(ns, na… argument
60 …GISTER_NS_DOUBLE_CONSTANT(ns, name, dval, flags) zend_register_double_constant(ZEND_NS_NAME(ns, n… argument
61 …EGISTER_NS_STRING_CONSTANT(ns, name, str, flags) zend_register_string_constant(ZEND_NS_NAME(ns, n… argument
62 …TER_NS_STRINGL_CONSTANT(ns, name, str, len, flags) zend_register_stringl_constant(ZEND_NS_NAME(ns argument
/php-src/ext/dom/lexbor/lexbor/html/
H A Dinterface.c26 lxb_ns_id_t ns) in lxb_html_interface_create() argument
31 if (ns == LXB_NS_HTML) { in lxb_html_interface_create()
37 else if (ns == LXB_NS_SVG) { in lxb_html_interface_create()
52 node = lxb_html_interface_res_constructors[tag_id][ns](document); in lxb_html_interface_create()
60 node->ns = ns; in lxb_html_interface_create()
107 node->local_name, node->ns); in lxb_html_interface_clone_element()
135 if (node->ns == LXB_NS_HTML) { in lxb_html_interface_destroy()
138 else if (node->ns == LXB_NS_SVG) { in lxb_html_interface_destroy()
147 return lxb_html_interface_res_destructor[node->local_name][node->ns](intrfc); in lxb_html_interface_destroy()
/php-src/ext/soap/
H A Dphp_xml.c188 if (node->ns) { in attr_find_ns()
189 return node->ns; in attr_find_ns()
190 } else if (node->parent->ns) { in attr_find_ns()
191 return node->parent->ns; in attr_find_ns()
199 if (node->ns) { in node_find_ns()
200 return node->ns; in node_find_ns()
209 if (ns) { in attr_is_equal_ex()
225 if (ns) { in node_is_equal_ex()
242 if (attr_is_equal_ex(node, name, ns)) { in get_attribute_ex()
253 if (node_is_equal_ex(node, name, ns)) { in get_node_ex()
[all …]
H A Dphp_xml.h35 int attr_is_equal_ex(xmlAttrPtr node, char *name, char *ns);
36 int node_is_equal_ex(xmlNodePtr node, char *name, char *ns);
37 xmlAttrPtr get_attribute_ex(xmlAttrPtr node,char *name, char *ns);
38 xmlNodePtr get_node_ex(xmlNodePtr node,char *name, char *ns);
39 xmlNodePtr get_node_recursive_ex(xmlNodePtr node,char *name, char *ns);
45 #define FOREACHATTRNODEEX(n,c,ns,i) \ argument
51 i = get_attribute_ex(n,c,ns); \
59 #define FOREACHNODEEX(n,c,ns,i) \ argument
/php-src/ext/dom/tests/modern/html/serializer/
H A DHTMLDocument_serialize_ns_imported_02.phpt25 <container xmlns="some:ns" xmlns:bar="another:ns">
32 <foo xmlns="some:ns"/>
38 …/www.w3.org/1999/xhtml"><head></head><body><p>foo<container xmlns="some:ns" xmlns:bar="another:ns">
45 <foo xmlns="some:ns"/>
49 <html><head></head><body><p>foo<container xmlns="some:ns" xmlns:bar="another:ns">
56 <foo xmlns="some:ns"></foo>
H A DHTMLDocument_serialize_ns_imported_05.phpt25 <container xmlns="some:ns" xmlns:bar="another:ns">
32 <foo xmlns="some:ns"/>
38 …/www.w3.org/1999/xhtml"><head></head><body><p>foo<container xmlns="some:ns" xmlns:bar="another:ns">
45 <foo xmlns="some:ns"/>
49 <html><head></head><body><p>foo<container xmlns="some:ns" xmlns:bar="another:ns">
56 <foo xmlns="some:ns"></foo>
H A DHTMLDocument_serialize_ns_imported_01.phpt8 …ment::createFromString('<?xml version="1.0"?><container xmlns="some:ns" xmlns:bar="another:ns"/>');
26 <container xmlns="some:ns" xmlns:bar="another:ns" xmlns:foo="http://foo/" foo:bar="value"><child xm…
29 …org/1999/xhtml"><head></head><body><p>foo<container xmlns="some:ns" xmlns:bar="another:ns" xmlns:f…
30 <html><head></head><body><p>foo<container xmlns="some:ns" xmlns:bar="another:ns" foo:bar="value"><c…
H A DHTMLDocument_serialize_ns_imported_03.phpt25 <container xmlns="some:ns" xmlns:bar="another:ns">
32 <foo xmlns="some:ns"/>
38 …org/1999/xhtml"><head></head><body><p>foo<container xmlns="some:ns" xmlns:bar="another:ns"/></p></…
39 <html><head></head><body><p>foo<container xmlns="some:ns" xmlns:bar="another:ns"></container></p></…
H A DHTMLDocument_serialize_ns_imported_04.phpt25 <container xmlns="some:ns" xmlns:bar="another:ns">
32 <foo xmlns="some:ns"/>
38 …org/1999/xhtml"><head></head><body><p>foo<container xmlns="some:ns" xmlns:bar="another:ns"/></p></…
39 <html><head></head><body><p>foo<container xmlns="some:ns" xmlns:bar="another:ns"></container></p></…
/php-src/ext/dom/tests/delayed_freeing/
H A Dnamespace_definition_crash_in_attribute.phpt9 $child = $doc->documentElement->appendChild($doc->createElementNS('some:ns', 'child'));
14 $attr3 = $child->appendChild($doc->createElementNS('some:ns', 'childcontainer'))
15 ->appendChild($doc->createAttributeNS('some:ns', 'hello'));
42 <container xmlns:default="some:ns2" xmlns:default1="some:ns"><child xmlns="some:ns" default:hello="…
44 <container xmlns:default="some:ns2" xmlns:default1="some:ns"/>
50 string(7) "some:ns"
51 string(7) "some:ns"
/php-src/ext/dom/lexbor/lexbor/html/tree/
H A Dopen_elements.c37 lxb_ns_id_t ns, in lxb_html_tree_open_elements_pop_until_tag_id() argument
48 if (node->local_name == tag_id && node->ns == ns) { in lxb_html_tree_open_elements_pop_until_tag_id()
76 if (node->ns == LXB_NS_HTML) { in lxb_html_tree_open_elements_pop_until_h123456()
102 if (node->ns == LXB_NS_HTML) { in lxb_html_tree_open_elements_pop_until_td_th()
198 lxb_tag_id_t tag_id, lxb_ns_id_t ns, in lxb_html_tree_open_elements_find() argument
207 if (node->local_name == tag_id && node->ns == ns) { in lxb_html_tree_open_elements_find()
225 lxb_tag_id_t tag_id, lxb_ns_id_t ns, in lxb_html_tree_open_elements_find_reverse() argument
237 if (node->local_name == tag_id && node->ns == ns) { in lxb_html_tree_open_elements_find_reverse()

Completed in 48 milliseconds

12345678