Home
last modified time | relevance | path

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

12345678910>>...20

/PHP-8.4/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.phpt2 058: Usage of 'namespace' in compound names (out of namespace)
13 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;
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 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 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 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 Dclosure_067.phpt5 namespace Foo;
17 // Closures are not inside of a namespace, thus the short name is the full name.
19 // The namespace is empty.
21 // The function is not inside of a namespace.
23 // And the namespace name + the short name together must be the full name.
/PHP-8.4/Zend/tests/use_function/
H A Dns_end_resets_seen_symbols_1.phpt6 namespace {
13 namespace Ns {
20 namespace {
25 namespace Ns {
30 namespace {
34 namespace Ns {
38 namespace {
43 namespace Ns {
H A Dns_end_resets_seen_symbols_2.phpt6 namespace {
11 namespace Ns {
16 namespace {
21 namespace Ns {
26 namespace {
30 namespace Ns {
34 namespace {
39 namespace Ns {
/PHP-8.4/ext/dom/tests/modern/html/interactions/
H A DDocument_body_getter.phpt18 echo "--- body in no namespace ---\n";
24 echo "--- frameset in no namespace ---\n";
30 echo "--- body in right namespace ---\n";
36 echo "--- frameset in right namespace ---\n";
80 --- body in no namespace ---
82 --- frameset in no namespace ---
84 --- body in right namespace ---
86 --- frameset in right namespace ---
88 --- prefixed body in right namespace ---
90 --- prefixed frameset in right namespace ---
[all …]
H A DDocument_head.phpt18 echo "--- head in no namespace ---\n";
24 echo "--- head in right namespace ---\n";
30 echo "--- prefixed head in right namespace ---\n";
36 echo "--- multiple head elements in right namespace ---\n";
47 echo "--- html element in no namespace ---\n";
62 --- head in no namespace ---
64 --- head in right namespace ---
66 --- prefixed head in right namespace ---
68 --- multiple head elements in right namespace ---
73 --- html element in no namespace ---
/PHP-8.4/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.4/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
/PHP-8.4/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.4/Zend/tests/enum/
H A Denum-in-var-export.phpt6 namespace {
10 namespace A {
14 namespace A\B {
18 namespace Test {
/PHP-8.4/ext/dom/tests/bug79701/
H A Dset_attribute_ns_html.phpt7 function test($namespace) {
20 $test1->setAttributeNS($namespace, "id", 'y');
26 $test2->setAttributeNS($namespace, "id", 'x');
32 $test1->setAttributeNS($namespace, "id", 'z');
38 $test2->setAttributeNS($namespace, "id", 'z');
47 echo "=== Test empty namespace ===\n\n";
49 echo "\n=== Test \"urn:x\" namespace ===\n\n";
53 === Test empty namespace ===
70 === Test "urn:x" namespace ===
/PHP-8.4/ext/dom/tests/modern/extensions/
H A DElement_renaming_html_ns_02.phpt2 Element renaming interaction with the HTML namespace 02
24 It is not possible to move an element out of the HTML namespace because the HTML namespace is tied …
25 It is not possible to move an element into the HTML namespace because the HTML namespace is tied to…

Completed in 29 milliseconds

12345678910>>...20