/PHP-8.1/ext/simplexml/tests/ |
H A D | bug72971.phpt | 8 $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 D | bug72971_2.phpt | 8 $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 D | profile11.phpt | 9 <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 D | profile10.phpt | 9 <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.1/Zend/tests/ |
H A D | bug42820.phpt | 5 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 D | bug62441.phpt | 10 namespace ns { 19 …ould not check compatibility between ns\Foo::method(ns\stdClass $o) and Iface::method(stdClass $o)…
|
/PHP-8.1/ext/dom/tests/ |
H A D | bug47847.phpt | 12 <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 D | bug34276.phpt | 9 <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 D | canonicalization.phpt | 9 <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 D | DOM4_DOMNode_after_ns.phpt | 14 $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 D | DOM4_DOMNode_before_ns.phpt | 14 $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 D | bug67440.phpt | 13 $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 D | bug46185.phpt | 9 <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 D | DOM4_DOMNode_append_ns.phpt | 14 $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 D | DOM4_DOMNode_prepend_ns.phpt | 14 $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 D | dom002.phpt | 9 <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.1/Zend/ |
H A D | zend_constants.h | 56 …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.1/ext/soap/ |
H A D | php_xml.c | 182 if (node->ns) { in attr_find_ns() 183 return node->ns; in attr_find_ns() 184 } else if (node->parent->ns) { in attr_find_ns() 185 return node->parent->ns; in attr_find_ns() 193 if (node->ns) { in node_find_ns() 194 return node->ns; in node_find_ns() 203 if (ns) { in attr_is_equal_ex() 219 if (ns) { in node_is_equal_ex() 236 if (attr_is_equal_ex(node, name, ns)) { in get_attribute_ex() 247 if (node_is_equal_ex(node, name, ns)) { in get_node_ex() [all …]
|
H A D | php_xml.h | 35 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 D | php_schema.c | 438 if (ns) {efree(ns);} in schema_list() 534 if (ns) {efree(ns);} in schema_union() 651 if (ns) {efree(ns);} in schema_restriction_simpleContent() 756 if (ns) {efree(ns);} in schema_restriction_complexContent() 881 if (ns) {efree(ns);} in schema_extension_simpleContent() 936 if (ns) {efree(ns);} in schema_extension_complexContent() 1101 if (ns) {efree(ns);} in schema_group() 1533 if (ns) {efree(ns);} in schema_element() 1765 if (ns) {efree(ns);} in schema_attribute() 1870 if (ns) {efree(ns);} in schema_attribute() [all …]
|
H A D | php_sdl.h | 95 char *ns; member 104 char *ns; member 110 char *ns; member 237 char *ns; member 257 encodePtr get_encoder(sdlPtr sdl, const char *ns, const char *type); 261 sdlBindingPtr get_binding_from_name(sdlPtr sdl, char *name, char *ns);
|
/PHP-8.1/ext/reflection/tests/ |
H A D | bug49092.phpt | 5 namespace ns; 7 new \ReflectionFunction('ns\func'); 8 new \ReflectionFunction('\ns\func');
|
/PHP-8.1/ext/soap/tests/bugs/ |
H A D | bug73538.phpt | 14 $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.1/ext/dom/ |
H A D | node.c | 41 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.1/ext/standard/tests/serialize/ |
H A D | precision.phpt | 26 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";
|