Home
last modified time | relevance | path

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

1234

/PHP-7.0/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');
H A Dprofile04.phpt8 <root xmlns:reserved="reserved-ns">
13 echo $root->children('reserved-ns')->child;
H A Dprofile06.phpt9 <root xmlns:reserved="reserved-ns">
14 $attr = $root->child->attributes('reserved-ns');
H A Dbug41861.phpt22 foreach (array(null, '#ns1', '#ns2', '#ns3') as $ns)
24 foreach ($xml->children($ns) as $child)
29 echo "children($ns): '$name' -- namespaces: ", implode(', ', $namespaces), "\n";
H A Dprofile07.phpt9 <root xmlns:reserved="reserved-ns">
15 $myattr = $root->child->attributes('reserved-ns');
/PHP-7.0/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 Fatal error: Declaration of ns\Foo::method(ns\stdClass $o) must be compatible with Iface::method(st…
/PHP-7.0/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')),
53 <contain xmlns="http://www.example.com/ns/foo" xmlns:fubar="http://www.example.com/ns/fubar" xmlns:…
61 <contain xmlns="http://www.example.com/ns/foo">
64 <fubar:bar xmlns:fubar="http://www.example.com/ns/fubar"><test3></test3></fubar:bar>
69 <contain xmlns="http://www.example.com/ns/foo" xmlns:fubar="http://www.example.com/ns/fubar" xmlns:…
77 <contain xmlns="http://www.example.com/ns/foo">
85 <foo xmlns="http://www.example.com/ns/foo"><contain>
[all …]
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'));
H A Dbug38850.phpt9 <foo xmlns="http://www.example.com/ns/foo" />
22 http://www.example.com/ns/foo
/PHP-7.0/Zend/
H A Dzend_constants.h47 …ine REGISTER_NS_NULL_CONSTANT(ns, name, flags) zend_register_null_constant(ZEND_NS_NAME(ns, name)… argument
48 … REGISTER_NS_BOOL_CONSTANT(ns, name, bval, flags) zend_register_bool_constant(ZEND_NS_NAME(ns, na… argument
49 … REGISTER_NS_LONG_CONSTANT(ns, name, lval, flags) zend_register_long_constant(ZEND_NS_NAME(ns, na… argument
50 …GISTER_NS_DOUBLE_CONSTANT(ns, name, dval, flags) zend_register_double_constant(ZEND_NS_NAME(ns, n… argument
51 …EGISTER_NS_STRING_CONSTANT(ns, name, str, flags) zend_register_string_constant(ZEND_NS_NAME(ns, n… argument
52 …TER_NS_STRINGL_CONSTANT(ns, name, str, len, flags) zend_register_stringl_constant(ZEND_NS_NAME(ns argument
/PHP-7.0/ext/soap/
H A Dphp_xml.c187 if (node->ns) { in attr_find_ns()
188 return node->ns; in attr_find_ns()
189 } else if (node->parent->ns) { in attr_find_ns()
190 return node->parent->ns; in attr_find_ns()
198 if (node->ns) { in node_find_ns()
199 return node->ns; in node_find_ns()
208 if (ns) { in attr_is_equal_ex()
224 if (ns) { in node_is_equal_ex()
241 if (attr_is_equal_ex(node, name, ns)) { in get_attribute_ex()
252 if (node_is_equal_ex(node, name, ns)) { in get_node_ex()
[all …]
H A Dphp_xml.h38 int attr_is_equal_ex(xmlAttrPtr node, char *name, char *ns);
39 int node_is_equal_ex(xmlNodePtr node, char *name, char *ns);
40 xmlAttrPtr get_attribute_ex(xmlAttrPtr node,char *name, char *ns);
41 xmlNodePtr get_node_ex(xmlNodePtr node,char *name, char *ns);
42 xmlNodePtr get_node_recursive_ex(xmlNodePtr node,char *name, char *ns);
48 #define FOREACHATTRNODEEX(n,c,ns,i) \ argument
54 i = get_attribute_ex(n,c,ns); \
62 #define FOREACHNODEEX(n,c,ns,i) \ argument
H A Dphp_schema.c441 if (ns) {efree(ns);} in schema_list()
537 if (ns) {efree(ns);} in schema_union()
654 if (ns) {efree(ns);} in schema_restriction_simpleContent()
759 if (ns) {efree(ns);} in schema_restriction_complexContent()
884 if (ns) {efree(ns);} in schema_extension_simpleContent()
939 if (ns) {efree(ns);} in schema_extension_complexContent()
1104 if (ns) {efree(ns);} in schema_group()
1536 if (ns) {efree(ns);} in schema_element()
1770 if (ns) {efree(ns);} in schema_attribute()
1874 if (ns) {efree(ns);} in schema_attribute()
[all …]
H A Dphp_sdl.h98 char *ns; member
107 char *ns; member
113 char *ns; member
240 char *ns; member
260 encodePtr get_encoder(sdlPtr sdl, const char *ns, const char *type);
264 sdlBindingPtr get_binding_from_name(sdlPtr sdl, char *name, char *ns);
/PHP-7.0/ext/reflection/tests/
H A Dbug49092.phpt5 namespace ns;
7 new \ReflectionFunction('ns\func');
8 new \ReflectionFunction('\ns\func');
/PHP-7.0/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-7.0/ext/dom/
H A Dnode.c202 xmlNsPtr ns; in dom_node_node_name_read() local
216 ns = nodep->ns; in dom_node_node_name_read()
217 if (ns != NULL && ns->prefix) { in dom_node_node_name_read()
227 ns = nodep->ns; in dom_node_node_name_read()
228 if (ns != NULL && ns->prefix) { in dom_node_node_name_read()
682 ns = nodep->ns; in dom_node_prefix_read()
683 if (ns != NULL && ns->prefix) { in dom_node_prefix_read()
1384 ns = xmlSearchNs(n->doc, node, n->ns->prefix); in PHP_FUNCTION()
1386 ns = xmlSearchNs(n->doc, n, n->ns->prefix); in PHP_FUNCTION()
1393 node->ns = xmlNewNs(root, ns->href, ns->prefix); in PHP_FUNCTION()
[all …]
H A Delement.c236 xmlNsPtr ns; in dom_element_tag_name_read() local
246 ns = nodep->ns; in dom_element_tag_name_read()
247 if (ns != NULL && ns->prefix) { in dom_element_tag_name_read()
282 xmlNsPtr ns; in dom_get_dom1_attribute() local
285 ns = elem->nsDef; in dom_get_dom1_attribute()
286 while (ns) { in dom_get_dom1_attribute()
290 ns = ns->next; in dom_get_dom1_attribute()
299 if (ns != NULL) { in dom_get_dom1_attribute()
516 attrp->ns = curns; in PHP_FUNCTION()
699 if ((tree == NULL) || (ns == NULL) || (ns->type != XML_NAMESPACE_DECL)) { in _dom_new_reconNs()
[all …]
/PHP-7.0/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 47 milliseconds

1234