Home
last modified time | relevance | path

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

12345

/PHP-8.3/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);
H A Dprofile10.phpt9 <root xmlns:reserved="reserved-ns" xmlns:special="special-ns">
14 $rsattr = $root->child->attributes('reserved-ns');
15 $spattr = $root->child->attributes('special-ns');
/PHP-8.3/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 …]
H A Dbug62441.phpt10 namespace ns {
19 …ould not check compatibility between ns\Foo::method(ns\stdClass $o) and Iface::method(stdClass $o)…
/PHP-8.3/ext/dom/tests/
H A Dbug47847.phpt12 <ns:container xmlns:ns="http://php.net">
13 <ns:inner xmlns="http://php.net">
14 <ns:WATCH-MY-NAMESPACE xmlns=""/>
15 </ns:inner>
16 </ns:container>
27 <ns:inner xmlns="http://php.net" xmlns:ns="http://php.net">
28 <ns:WATCH-MY-NAMESPACE xmlns=""/>
29 </ns:inner>
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 DDOMNode_C14N_references.phpt11 <foo xmlns="http://www.example.com/ns/foo"
12 xmlns:fubar="http://www.example.com/ns/fubar" xmlns:test="urn::test"><contain>
15 <fubar:bar xmlns:fubar="http://www.example.com/ns/fubar"><test3 /></fubar:bar>
27 'namespaces' => ['a' => 'http://www.example.com/ns/foo'],
41 <contain xmlns="http://www.example.com/ns/foo" xmlns:test="urn::test"><bar></bar><bar></bar></conta…
H A Dbug47531_b.phpt10 <container xmlns:foo="some:ns">
19 <p xmlns:foo="other:ns">
29 <child7 xmlns:foo="some:ns" foo:foo="bar">
44 <container xmlns:foo="some:ns">
53 <p xmlns:foo="other:ns">
63 <child7 xmlns:foo="some:ns" foo:foo="bar">
H A DDOM4_DOMNode_after_ns.phpt14 $root->setAttributeNS('http://www.w3.org/2000/xmlns/' ,'xmlns:g', 'http://base.google.com/ns/1.0');
16 $item = $doc->createElementNS('http://base.google.com/ns/1.0', 'g:item_type', 'house');
19 $item2 = $doc->createElementNS('http://base.google.com/ns/1.0', 'g:item_type', 'street');
26 <element xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0">
H A DDOM4_DOMNode_before_ns.phpt14 $root->setAttributeNS('http://www.w3.org/2000/xmlns/' ,'xmlns:g', 'http://base.google.com/ns/1.0');
16 $item = $doc->createElementNS('http://base.google.com/ns/1.0', 'g:item_type', 'house');
19 $item2 = $doc->createElementNS('http://base.google.com/ns/1.0', 'g:item_type', 'street');
26 <element xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0">
H A Dbug67440.phpt13 $fragment->appendChild($document->createElementNS('http://example/ns', 'myns:childNode', '1'));
15 $fragment->appendChild($document->createElementNS('http://example/ns', 'myns:childNode', '2'));
72 <rootElement xmlns:myns="http://example/ns" xmlns:myns2="http://example/ns2">
79 <rootElement xmlns:myns="http://example/ns" xmlns:myns2="http://example/ns2">
92 <rootElement xmlns:myns="http://example/ns" xmlns:myns2="http://example/ns2">
100 <rootElement xmlns:myns="http://example/ns" xmlns:myns2="http://example/ns2">
107 <rootElement xmlns:myns="http://example/ns" xmlns:myns2="http://example/ns2">
120 <rootElement xmlns:myns="http://example/ns" xmlns:myns2="http://example/ns2">
128 <rootElement xmlns:myns="http://example/ns" xmlns:myns2="http://example/ns2">
135 <rootElement xmlns:myns="http://example/ns" xmlns:myns2="http://example/ns2">
[all …]
/PHP-8.3/Zend/
H A Dzend_constants.h56 …ine REGISTER_NS_NULL_CONSTANT(ns, name, flags) zend_register_null_constant(ZEND_NS_NAME(ns, name)… argument
57 … REGISTER_NS_BOOL_CONSTANT(ns, name, bval, flags) zend_register_bool_constant(ZEND_NS_NAME(ns, na… argument
58 … REGISTER_NS_LONG_CONSTANT(ns, name, lval, flags) zend_register_long_constant(ZEND_NS_NAME(ns, na… argument
59 …GISTER_NS_DOUBLE_CONSTANT(ns, name, dval, flags) zend_register_double_constant(ZEND_NS_NAME(ns, n… argument
60 …EGISTER_NS_STRING_CONSTANT(ns, name, str, flags) zend_register_string_constant(ZEND_NS_NAME(ns, n… argument
61 …TER_NS_STRINGL_CONSTANT(ns, name, str, len, flags) zend_register_stringl_constant(ZEND_NS_NAME(ns argument
/PHP-8.3/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
H A Dphp_schema.c459 if (ns) {efree(ns);} in schema_list()
555 if (ns) {efree(ns);} in schema_union()
672 if (ns) {efree(ns);} in schema_restriction_simpleContent()
777 if (ns) {efree(ns);} in schema_restriction_complexContent()
902 if (ns) {efree(ns);} in schema_extension_simpleContent()
957 if (ns) {efree(ns);} in schema_extension_complexContent()
1122 if (ns) {efree(ns);} in schema_group()
1554 if (ns) {efree(ns);} in schema_element()
1786 if (ns) {efree(ns);} in schema_attribute()
1891 if (ns) {efree(ns);} in schema_attribute()
[all …]
/PHP-8.3/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"
H A Dgh9628_1.phpt8 <p xmlns="some:ns">
39 string(7) "some:ns"
41 string(7) "some:ns"
43 <span xmlns:test="some:ns2" xmlns="some:ns" id="1">
46 <default:span xmlns:default="some:ns" xmlns:test="some:ns2" id="2">Test <test:test/></default:span>
48 string(7) "some:ns"
H A Dnamespace_definition_crash.phpt9 $child = $doc->documentElement->appendChild($doc->createElementNS('some:ns', 'child'));
10 $child_child = $child->appendChild($doc->createElementNS('some:ns', 'x'));
22 <container><child xmlns="some:ns"><x/></child></container>
25 string(7) "some:ns"
/PHP-8.3/ext/reflection/tests/
H A Dbug49092.phpt5 namespace ns;
7 new \ReflectionFunction('ns\func');
8 new \ReflectionFunction('\ns\func');
/PHP-8.3/ext/soap/tests/bugs/
H A Dbug73538.phpt14 $client->__setSoapHeaders(new \SoapHeader('ns', 'Header', ['something' => 1]));
15 $client->__setSoapHeaders(new \SoapHeader('ns', 'Header', ['something' => 2]));
25 $client->__setSoapHeaders([new \SoapHeader('ns', 'Header', ['something' => 1])]);
26 $client->__setSoapHeaders([new \SoapHeader('ns', 'Header', ['something' => 2])]);
33 …"http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="test://" xmlns:ns2="ns" xmlns:xsd="http://w…
35 …"http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="test://" xmlns:ns2="ns" xmlns:xsd="http://w…
/PHP-8.3/ext/dom/
H A Dnode.c48 if (nodep->ns != NULL && nodep->ns->prefix != NULL) { in dom_node_get_node_name_attribute_or_element()
87 xmlNsPtr ns = nodep->ns; in dom_node_node_name_read() local
88 if (ns != NULL && ns->prefix) { in dom_node_node_name_read()
615 xmlNsPtr ns; in dom_node_prefix_read() local
627 ns = nodep->ns; in dom_node_prefix_read()
628 if (ns != NULL && ns->prefix) { in dom_node_prefix_read()
684 ns = NULL; in dom_node_prefix_write()
1345 ns = xmlSearchNs(n->doc, node, n->ns->prefix); in PHP_METHOD()
1347 ns = xmlSearchNs(n->doc, n, n->ns->prefix); in PHP_METHOD()
1354 node->ns = xmlNewNs(root, ns->href, ns->prefix); in PHP_METHOD()
[all …]

Completed in 50 milliseconds

12345