Home
last modified time | relevance | path

Searched refs:const (Results 1 – 25 of 481) sorted by relevance

12345678910>>...20

/PHP-8.2/Zend/tests/grammar/
H A Dsemi_reserved_005.phpt8 const EMPTY = 'empty';
10 const TRAIT = 'trait';
19 const CONST = 'const';
25 const AND = 'and';
32 const NEW = 'new';
33 const OR = 'or';
58 const FN = 'fn';
59 const IF = 'if';
66 const DO = 'do';
68 const AS = 'as';
[all …]
/PHP-8.2/Zend/tests/
H A Dconstant_expressions.phpt5 const T_1 = 1 << 1;
6 const T_2 = 1 / 2;
7 const T_3 = 1.5 + 1.5;
11 const T_7 = __LINE__;
15 const T_9 = ~-1;
17 const T_11 = 1 && 0;
19 const T_13 = 0 || 0;
20 const T_14 = 1 or 0;
23 const T_17 = 1 < 0;
24 const T_18 = 0 <= 0;
[all …]
H A Dconstant_expressions_dynamic.phpt6 const C_0 = 0;
7 const C_1 = 1;
8 const C_foo = "0foo";
11 const T_1 = C_1 | 2;
13 const T_3 = C_1 > 1;
14 const T_4 = C_1 >= 1;
15 const T_5 = -C_1;
16 const T_6 = +C_1;
17 const T_7 = +C_foo;
18 const T_8 = !C_1;
[all …]
H A Dbug69676_3.phpt7 const N = 'P';
12 const N = 'A';
15 const N = 'B';
23 const N = 'A2';
27 const N = 'B2';
30 const N = 'C2';
37 const N = 'A3';
41 const N = 'B3';
44 const N = 'C3';
51 const N = 'A4';
[all …]
H A Dbug33732.phpt6 const cA = "const of iA\n";
21 const cA = "const of iA2\n";
39 const of iA
40 const of iA
41 const of iA
42 const of iA2
43 const of iA2
44 const of iA2
45 const of iA2
H A Dbug69676.phpt6 const myConst = "const in A";
7 const myDynConst = self::myConst;
11 const myConst = "const in B";
18 string(10) "const in A"
19 string(10) "const in A"
H A DselfParent_001.phpt6 const myConst = "const in A";
7 const myDynConst = self::myConst;
15 const myConst = "const in B";
26 string(10) "const in A"
27 string(10) "const in A"
H A DselfParent_002.phpt6 const myConst = "const in A";
7 const myDynConst = self::myConst;
15 const myConst = "const in B";
26 string(10) "const in A"
27 string(10) "const in A"
H A Dns_057.phpt7 const C = "const ok\n";
14 const C = "const ok\n";
15 const C2 = namespace\C;
48 const ok
50 const ok
51 const ok
54 const ok
55 const ok
H A Dns_058.phpt5 const C = "const ok\n";
12 const C = "const ok\n";
13 const C2 = namespace\C;
46 const ok
48 const ok
49 const ok
52 const ok
53 const ok
H A Dns_trailing_comma_02.phpt6 const FOO_CONST_1 = "Foo const 1\n";
7 const FOO_CONST_2 = "Foo const 2\n";
26 use const Foo\{
47 Foo const 1
48 Foo const 2
H A Dconstants_007.phpt2 Testing const names
6 const a = 'a';
7 const A = 'b';
11 const a = 'c';
12 const A = 'd';
H A Dconstant_expressions_arrays.phpt5 const a = [1,2,[3,[4]]];
6 const b = a[0];
7 const c = a[2][0];
8 const d = a[2];
9 const e = ["string" => [1]]["string"][0];
20 const bar = [1][0];
H A Dbug69676_2.phpt7 const A = 'Foo::A';
8 const B = self::A . ' and ' . self::C;
9 const C = 'Foo::C';
14 const A = 'Bar::A';
15 const C = 'Bar::C';
H A Dclass_constants_004.phpt10 const foo = 1;
13 const foo = 2;
17 const foo = 4;
20 $const = __NAMESPACE__ .'\\foo'; // class
27 $const::foo,
H A Dconstant_expressions_coalesce.phpt6 const A = [1 => [[]]];
8 const T_1 = null ?? A[1]['undefined']['index'] ?? 1;
9 const T_2 = null ?? A['undefined']['index'] ?? 2;
10 const T_3 = null ?? A[1][0][2] ?? 3;
11 const T_4 = A[1][0][2] ?? 4;
12 const T_5 = null ?? __LINE__;
13 const T_6 = __LINE__ ?? "bar";
/PHP-8.2/ext/reflection/tests/
H A DReflectionClass_getConstants_filter.phpt6 public const PUBLIC_CONST = 'BAR';
7 public const ANOTHER_PUBLIC_CONST = 'BAZ';
8 protected const PROTECTED_CONST = 'FOO';
9 private const PRIVATE_CONST = 'QUOZ';
13 public const PUBLIC_CONST = 'BAR';
15 protected const PROTECTED_CONST = 'FOO';
16 private const PRIVATE_CONST = 'QUOZ';
20 public const PUBLIC_CONST = 'BAR';
21 protected const PROTECTED_CONST = 'FOO';
22 private const PRIVATE_CONST = 'QUOZ';
[all …]
H A DReflectionClass_getReflectionConstants_filter.phpt6 public const PUBLIC_CONST = 'BAR';
7 public const ANOTHER_PUBLIC_CONST = 'BAZ';
8 protected const PROTECTED_CONST = 'FOO';
9 private const PRIVATE_CONST = 'QUOZ';
13 public const PUBLIC_CONST = 'BAR';
15 protected const PROTECTED_CONST = 'FOO';
16 private const PRIVATE_CONST = 'QUOZ';
20 public const PUBLIC_CONST = 'BAR';
21 protected const PROTECTED_CONST = 'FOO';
22 private const PRIVATE_CONST = 'QUOZ';
[all …]
H A DReflectionClassConstant_getValue.phpt8 const X = self::Y * 2;
9 const Y = 1;
12 const X = self::Y * 2;
13 const Y = 1;
16 const X = self::Y * 2;
17 const Y = 1;
/PHP-8.2/tests/classes/
H A Dconstants_basic_001.phpt12 const c1 = 1, c2 = 1.5;
14 const c5 = -1, c6 = -1.5;
16 const c7 = __LINE__;
17 const c8 = __FILE__;
18 const c9 = __CLASS__;
19 const c10 = __METHOD__;
22 const c12 = DEFINED;
26 const c15 = "hello1";
27 const c16 = 'hello2';
28 const c17 = C::c16;
[all …]
H A Dconstants_comments_001.phpt9 const X1 = 1;
10 const X2 = 2;
12 const X3 = 3;
16 const Y1 = 1;
17 const Y2 = 2;
19 const Y3 = 3;
/PHP-8.2/Zend/tests/prop_const_expr/
H A Dbasic_nullsafe.phpt12 const A = (null)?->test;
15 const B = (null)?->test->test;
18 const C = (null)->test?->test;
21 const D = (null)?->test['test'];
24 const E = (null)['test']?->test;
27 const F = (null)?->{new Printer};
30 const G = (null)?->test + (new Printer ? 1 : 0);
/PHP-8.2/Zend/tests/use_function/
H A Dconflicting_use_const_alias.phpt2 use const and use function with the same alias
7 const foo = 'foo.const';
14 use const foo as bar;
22 string(9) "foo.const"
/PHP-8.2/ext/tokenizer/tests/
H A Dtoken_get_all_TOKEN_PARSE_002.phpt2 Semi reserved words support: class const
9 const CONST = 1;
10 const CONTINUE = (self::CONST + 1);
11 const ARRAY = [1, self::CONTINUE => [3, 4], 5];
32 L3: T_CONST const
37 L4: T_CONST const
48 L5: T_CONST const
/PHP-8.2/Zend/tests/use_const/
H A Dconflicting_use.phpt2 use const statements with conflicting names
7 const baz = 42;
11 const baz = 42;
15 use const foo\baz, bar\baz;
21 Fatal error: Cannot use const bar\baz as baz because the name is already in use in %s on line %d

Completed in 19 milliseconds

12345678910>>...20