Home
last modified time | relevance | path

Searched refs:namespace (Results 1 – 25 of 359) sorted by relevance

12345678910>>...15

/PHP-8.1/Zend/tests/
H A Dns_057.phpt2 057: Usage of 'namespace' in compound names (inside namespace)
5 namespace Test\ns1;
15 const C2 = namespace\C;
36 echo namespace\C;
37 echo namespace\foo();
38 echo namespace\foo::C;
39 echo namespace\foo::C2;
42 echo namespace\f1();
43 echo namespace\f2();
44 echo namespace\f3(new namespace\foo());
[all …]
H A Dns_058.phpt13 const C2 = namespace\C;
34 echo namespace\C;
35 echo namespace\foo();
36 echo namespace\foo::C;
37 echo namespace\foo::C2;
38 echo namespace\foo::$var;
39 echo namespace\foo::bar();
40 echo namespace\f1();
41 echo namespace\f2();
42 echo namespace\f3(new namespace\foo());
[all …]
H A Dns_081.phpt2 081: bracketed namespace with nested unbracketed namespace
5 namespace foo {
12 namespace oops;
23 Fatal error: Cannot mix bracketed namespace declarations with unbracketed namespace declarations in…
H A Dns_084.phpt2 084: unbracketed namespace with nested bracketed namespace
5 namespace foo;
12 namespace oops {
23 Fatal error: Cannot mix bracketed namespace declarations with unbracketed namespace declarations in…
H A Dnamespace_name_reserved_keywords.phpt2 Reserved keywords in namespace name
6 namespace iter\fn {
12 namespace fn {
18 namespace self {
24 namespace {
H A Dnamespace_name_namespace.phpt2 Cannot use "namespace" as namespace name, due to conflict with ns-relative names
6 namespace NAMEspace;
10 Fatal error: Cannot use 'NAMEspace' as namespace name in %s on line %d
H A Dbug77966.phpt2 Bug #77966: Cannot alias a method named "namespace"
7 function namespace() {
14 namespace as bar;
20 $c->namespace();
H A Dconstants_009.phpt2 Accessing constants inside namespace
6 namespace foo\x;
15 var_dump(namespace\x,
17 namespace\x::x);
H A Dnamespace_name_namespace_start.phpt2 Cannot use "namespace\xyz" as namespace name, due to conflict with ns-relative names
6 namespace NAMEspace\xyz;
10 Parse error: syntax error, unexpected namespace-relative name "NAMEspace\xyz", expecting "{" in %s …
H A Dns_082.phpt2 082: bracketed namespace with closing tag
5 namespace foo {
7 namespace ok {
H A Dbug70164.phpt2 …_HALT_OFFSET__ is a "magic" constant, which should work if referenced directly, even in a namespace
6 namespace {
11 namespace Foo {
14 echo namespace\__COMPILER_HALT_OFFSET__, "\n";
H A Dns_087.phpt2 087: bracketed namespace with stuff in between
5 namespace foo {
14 namespace {
25 Fatal error: No code may exist outside of namespace {} in %s on line 10
H A Deval_constant_resolution.phpt5 namespace foo {
8 eval('namespace foo { var_dump(true); var_dump(TrUe); var_dump(namespace\true); var_dump(\true); }'…
10 var_dump(true); var_dump(TrUe); var_dump(namespace\true); var_dump(\true);
H A Dbug43343.phpt5 namespace Foo;
8 var_dump(new namespace::$foo);
11 Parse error: syntax error, unexpected token "namespace", expecting ":" in %s on line %d
H A Dconstants_003.phpt2 Using namespace constants and constants of global scope
6 namespace foo;
12 var_dump(foo, namespace\foo, \foo\foo, \foo, constant('foo'), constant('foo\foo'));
/PHP-8.1/Zend/tests/attributes/
H A D004_name_resolution.phpt6 namespace {
16 namespace Doctrine\ORM\Mapping {
21 namespace Doctrine\ORM\Attributes {
26 namespace Foo {
32 #[ORM\Entity("imported namespace")]
33 #[\Doctrine\ORM\Mapping\Entity("absolute from namespace")]
40 namespace {
65 string(18) "imported namespace"
75 string(23) "absolute from namespace"
/PHP-8.1/ext/dom/tests/
H A DDOMDocument_getElementsByTagNameNS_match_any_namespace.phpt2 DOMDocument::getElementsByTagNameNS() match any namespace
20 This is another namespace
30 function test($namespace, $local) {
32 $namespace_str = $namespace !== NULL ? "'$namespace'" : "null";
34 foreach ($dom->getElementsByTagNameNS($namespace, $local) as $element) {
39 // Should *also* include objects even without a namespace
41 // Should *also* include objects even without a namespace
43 // Should *only* include objects without a namespace
45 // Should *only* include objects with the specified namespace
49 // Should not give any output, because the null namespace is the same as the empty namespace
[all …]
H A Dbug54382.phpt18 echo 'namespace node does not exist.' . "\n";
20 echo 'namespace node prefix=' . $ns2->prefix . "\n";
21 echo 'namespace node namespaceURI=' . $ns2->namespaceURI . "\n";
25 namespace node prefix=ns2
26 namespace node namespaceURI=http://ns2
H A Dgh12616_3.phpt2 GH-12616 (DOM: Removing XMLNS namespace node results in invalid default: prefix)
31 foreach ($xpath->query("/container/child1/namespace::*") as $ns) {
43 foreach ($xpath->query("/container/child2/namespace::*") as $ns) {
65 string(36) "http://www.w3.org/XML/1998/namespace"
73 string(36) "http://www.w3.org/XML/1998/namespace"
84 string(36) "http://www.w3.org/XML/1998/namespace"
92 string(36) "http://www.w3.org/XML/1998/namespace"
102 string(36) "http://www.w3.org/XML/1998/namespace"
110 string(36) "http://www.w3.org/XML/1998/namespace"
121 string(36) "http://www.w3.org/XML/1998/namespace"
[all …]
/PHP-8.1/ext/soap/tests/bugs/
H A Dbug69462.phpt2 Bug #69462 (__soapCall with a SoapVar that has a namespace but no name crashes)
7 $namespace = "http://example.com/ns";
9 $client = new SoapClient(null, [ 'exceptions' => 1, 'location' => "", 'uri' => $namespace ]);
13 new SoapVar('value', XSD_STRING, null, null, null, $namespace)
15 SOAP_ENC_OBJECT, null, null, 'name', $namespace
/PHP-8.1/Zend/tests/grammar/
H A Dregression_011.phpt2 Testing instantiation using namespace:: prefix
6 namespace foo;
13 var_dump(new namespace\baz);
/PHP-8.1/Zend/tests/enum/
H A Dkeyword-no-bc-break.phpt6 namespace enum {
10 namespace foo {
15 namespace bar {
20 namespace {
/PHP-8.1/Zend/tests/use_function/
H A Dignore_constants.phpt6 namespace foo {
10 namespace {
14 namespace {
/PHP-8.1/build/
H A Dphp_cxx_compile_stdcxx.m4134 namespace cxx11
137 namespace test_static_assert
178 namespace test_decltype
233 namespace test_noexcept
244 namespace test_constexpr
307 namespace test_lambdas
401 } // namespace cxx11
425 namespace cxx14
525 } // namespace cxx14
553 namespace cxx17
[all …]
/PHP-8.1/ext/xmlreader/tests/
H A D015.phpt2 XMLReader: libxml2 XML Reader, Move cursor to a named attribute within a namespace
11 <books xmlns:ns1="http://www.ns1.namespace.org/" xmlns:ns2="http://www.ns2.namespace.org/"><book ns…
27 $attr = $reader->moveToAttributeNs('idx', 'http://www.ns1.namespace.org/');
31 $attr = $reader->moveToAttributeNs('idx', 'http://www.ns2.namespace.org/');
35 $attr = $reader->moveToAttributeNs('isbn', 'http://www.ns2.namespace.org/');
40 $attr = $reader->moveToAttributeNs('elephpant', 'http://www.ns2.namespace.org/');
41 …at move should return a result of false, because there is no elephpant attribute (in any namespace)

Completed in 25 milliseconds

12345678910>>...15