/PHP-8.4/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.4/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 | dynamic_class_const_fetch_cache_slot.phpt | 7 public const BAR = 'bar'; 8 public const BAZ = 'baz'; 12 public const BAZ = 'baz child'; 16 public const BAR = 'bar 2'; 17 public const BAZ = 'baz 2'; 24 function test($const) { 25 echo Foo::{$const}, "\n"; 27 echo $foo::{$const}, "\n"; 33 $c = function ($const) { 34 echo self::{$const}, "\n"; [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 | dynamic_class_const_fetch_const_expr.phpt | 7 public const BAR = 'bar'; 8 public const BA = 'BA'; 9 public const R = 'R'; 10 public const CLASS_ = 'class'; 11 public const A = self::{'BAR'}; 12 public const B = self::{'BA' . 'R'}; 13 public const C = self::{self::BA . self::R};
|
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';
|
/PHP-8.4/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 …]
|
/PHP-8.4/Zend/tests/type_declarations/ |
H A D | typed_class_constants_inheritance_success1.phpt | 6 public const CONST1 = 1; 7 public const CONST2 = 1; 8 public const mixed CONST3 = 1; 9 public const iterable CONST4 = []; 13 public const int CONST1 = 0; 14 public const mixed CONST2 = 0; 15 public const mixed CONST3 = 0; 16 public const array CONST4 = [];
|
H A D | typed_class_constants_inheritance_success4.phpt | 6 const G = new stdClass(); 13 public const int CONST1 = 1; 14 public const ?array CONST2 = []; 15 public const E CONST3 = E::Case1; 16 public const stdClass CONST4 = G; 22 public const int CONST1 = 1; 23 public const ?array CONST2 = []; 24 public const E CONST3 = E::Case1; 25 public const stdClass CONST4 = G;
|
H A D | typed_class_constants_inheritance_success2.phpt | 14 public const object CONST1 = S; 15 public const S CONST2 = S; 16 public const S|Stringable CONST3 = S; 17 public const S CONST4 = S; 18 public const ?S CONST5 = S; 22 public const S CONST1 = Z; 23 public const Z CONST2 = Z; 24 public const S CONST3 = Z; 25 public const S&Stringable CONST4 = Z; 26 public const (S&Stringable)|null CONST5 = Z;
|
H A D | typed_class_constants_type_success1.phpt | 6 public const null CONST1 = null; 7 public const false CONST2 = false; 8 public const true CONST3 = true; 9 public const bool CONST4 = true; 10 public const int CONST5 = 0; 11 public const float CONST6 = 3.14; 12 public const float CONST7 = 3; 13 public const string CONST8 = ""; 14 public const array CONST9 = []; 15 public const array|string CONST10 = ""; [all …]
|
H A D | typed_class_constants_type_success3.phpt | 6 public const E CONST1 = E::Foo; 7 public const self CONST2 = E::Foo; 8 public const static CONST3 = E::Foo; 9 public const static|stdClass CONST4 = E::Foo; 15 public const E ENUM_CONST = E::Foo; 16 public const E CONST1 = E::CONST1; 17 public const E CONST2 = E::CONST2; 18 public const E CONST3 = E::CONST3; 19 public const E CONST4 = E::CONST4;
|
/PHP-8.4/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.4/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.4/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"
|