Home
last modified time | relevance | path

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

12345

/PHP-8.2/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.2/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.2/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 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 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 …]
H A DDOM4_DOMNode_append_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');
23 <element xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0">
H A DDOM4_DOMNode_prepend_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');
23 <element xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0">
H A Dbug46185.phpt9 <ns1:a xmlns:ns1="urn::ns"/>');
14 <ns1:ok xmlns:ns1="urn::ns" xmlns="urn::REAL"><watch-me xmlns:default="urn::BOGUS"/></ns1:ok>');
23 <ns1:a xmlns:ns1="urn::ns"><ns1:ok xmlns="urn::REAL"><watch-me xmlns:default="urn::BOGUS"/></ns1:ok…
H A Ddom002.phpt9 <foo xmlns="http://www.example.com/ns/foo"
10 xmlns:fubar="http://www.example.com/ns/fubar">
30 dump($dom->getElementsByTagNameNS('http://www.example.com/ns/fubar', 'bar'));
31 dump($doc->getElementsByTagNameNS('http://www.example.com/ns/fubar', 'bar'));
/PHP-8.2/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.2/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.2/ext/reflection/tests/
H A Dbug49092.phpt5 namespace ns;
7 new \ReflectionFunction('ns\func');
8 new \ReflectionFunction('\ns\func');
/PHP-8.2/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.2/ext/dom/
H A Dnode.c41 xmlNsPtr ns; in dom_node_node_name_read() local
55 ns = nodep->ns; in dom_node_node_name_read()
56 if (ns != NULL && ns->prefix) { in dom_node_node_name_read()
66 ns = nodep->ns; in dom_node_node_name_read()
67 if (ns != NULL && ns->prefix) { in dom_node_node_name_read()
585 ns = nodep->ns; in dom_node_prefix_read()
586 if (ns != NULL && ns->prefix) { in dom_node_prefix_read()
1317 ns = xmlSearchNs(n->doc, node, n->ns->prefix); in PHP_METHOD()
1319 ns = xmlSearchNs(n->doc, n, n->ns->prefix); in PHP_METHOD()
1326 node->ns = xmlNewNs(root, ns->href, ns->prefix); in PHP_METHOD()
[all …]
/PHP-8.2/ext/standard/tests/serialize/
H A Dprecision.phpt26 foreach ($numbers as $ns) {
27 $num = unpack("d", pack("H*", $ns)); $num = reset($num);
31 if ($repr == $ns)
34 echo "mismatch\n\twas: $ns\n\tbecame: $repr\n";

Completed in 31 milliseconds

12345