Searched refs:const (Results 1 – 25 of 481) sorted by relevance
12345678910>>...20
/PHP-8.2/Zend/tests/grammar/ |
H A D | semi_reserved_005.phpt | 8 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 D | constant_expressions.phpt | 5 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 D | constant_expressions_dynamic.phpt | 6 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 D | bug69676_3.phpt | 7 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 D | bug33732.phpt | 6 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 D | bug69676.phpt | 6 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 D | selfParent_001.phpt | 6 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 D | selfParent_002.phpt | 6 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 D | ns_057.phpt | 7 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 D | ns_058.phpt | 5 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 D | ns_trailing_comma_02.phpt | 6 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 D | constants_007.phpt | 2 Testing const names 6 const a = 'a'; 7 const A = 'b'; 11 const a = 'c'; 12 const A = 'd';
|
H A D | constant_expressions_arrays.phpt | 5 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 D | bug69676_2.phpt | 7 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 D | class_constants_004.phpt | 10 const foo = 1; 13 const foo = 2; 17 const foo = 4; 20 $const = __NAMESPACE__ .'\\foo'; // class 27 $const::foo,
|
H A D | constant_expressions_coalesce.phpt | 6 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 D | ReflectionClass_getConstants_filter.phpt | 6 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 D | ReflectionClass_getReflectionConstants_filter.phpt | 6 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 D | ReflectionClassConstant_getValue.phpt | 8 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 D | constants_basic_001.phpt | 12 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 D | constants_comments_001.phpt | 9 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 D | basic_nullsafe.phpt | 12 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 D | conflicting_use_const_alias.phpt | 2 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 D | token_get_all_TOKEN_PARSE_002.phpt | 2 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 D | conflicting_use.phpt | 2 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 25 milliseconds
12345678910>>...20