Home
last modified time | relevance | path

Searched refs:const (Results 26 – 50 of 481) sorted by relevance

12345678910>>...20

/PHP-8.2/Zend/tests/use_const/
H A Ddefine_imported.phpt2 defining const with same name as imported should fail
7 use const foo\bar;
9 const bar = 42;
14 Fatal error: Cannot declare const bar because the name is already in use in %s on line %d
H A Ddefine_imported_before.phpt2 using const with same name as defined should fail
7 const bar = 42;
9 use const foo\bar;
18 Fatal error: Cannot use const foo\bar as bar because the name is already in use in %s on line %d
H A Dcase_sensivity.phpt2 importing const with same name but different case
7 use const foo\bar;
8 use const foo\BAR;
H A Dself_parent.phpt2 Allow self and parent in use const statement
7 use const self as foo;
8 use const parent as bar;
H A Dconflicting_use_alias.phpt2 use and use const with the same alias
7 const foo = 'foo';
12 use const foo as bar;
/PHP-8.2/ext/reflection/tests/
H A Dbug29986.phpt9 const BOOLEAN_CONSTANT = true;
10 const NULL_CONSTANT = null;
11 const STRING_CONSTANT = 'This is a string';
12 const INTEGER_CONSTANT = 1000;
13 const FLOAT_CONSTANT = 3.14159265;
H A Dbug53915.phpt7 const A = 1;
8 const B = self::A;
16 const A = 1;
17 const B = self::A;
H A Dbug38653.phpt7 const cons = 10;
8 const cons1 = "";
9 const cons2 = "test";
19 var_dump($foo->getConstant("no such const"));
/PHP-8.2/Zend/tests/
H A Dname_collision_09.phpt7 const BAR = 42;
11 use const Foo\BAR;
12 const BAR = 24;
16 Fatal error: Cannot declare const Bazzle\BAR because the name is already in use in %s on line %d
H A Dbug49472.phpt7 const c = 'Sea';
8 const y = 2;
15 const x = 1;
16 const c = 'Ocean';
H A Dbug50174.phpt8 /** const comment */
9 const C = 0;
19 /** const comment */
20 const C = 0;
H A Dbug45910_2.phpt7 const AAA = 'x';
8 const BBB = 'a';
9 const CCC = 'a';
10 const DDD = self::AAA;
H A Dbug45910.phpt7 const AAA = 'x';
8 const BBB = 'a';
9 const CCC = 'a';
10 const DDD = self::AAA;
H A Dns_trailing_comma_01.phpt6 const FOO_CONST = "Foo const\n";
18 const FOO_CONST,
28 Foo const
H A Dns_010.phpt8 const C = "const ok\n";
37 const ok
38 const ok
39 const ok
H A Dclass_constant_inheritance_mutable_data.phpt12 const X = 'X' . self::Y;
13 const Y = 'Y';
16 const X2 = 'X2' . self::Y2;
17 const Y2 = 'Y2';
25 const C = 1 % 1.5;
H A Dns_037.phpt8 const C = "const ok\n";
37 const ok
38 const ok
39 const ok
H A Dbug24699.phpt5 class TEST { const FOO = SEEK_CUR; };
6 class TEST2 { const FOO = 1; };
7 class TEST3 { const FOO = PHP_VERSION; };
/PHP-8.2/Zend/tests/prop_const_expr/
H A Dbasic.phpt10 const A_name = A::Case->name;
11 const A_value = A::Case->value;
16 const A_name_nullsafe = A::Case?->name;
17 const A_value_nullsafe = A::Case?->value;
H A Dclass_const.phpt11 const A_name = A::Case->name;
12 const A_value = A::Case->value;
13 const A_name_nullsafe = A::Case?->name;
14 const A_value_nullsafe = A::Case?->value;
/PHP-8.2/ext/ffi/tests/
H A D002.phpt76 typedef const void* type47;
80 typedef const volatile void* type51;
94 typedef const void * const volatile * const type56;
98 typedef char type58[const];
99 typedef char type59[const volatile];
101 typedef char type61[const 10];
106 typedef char type66[const volatile];
118 static void f11(const char *name);
119 static void f12(const char *);
120 static void f13(const int a[5]);
[all …]
/PHP-8.2/Zend/tests/constants/final_constants/
H A Dfinal_const9.phpt8 const C = 1;
13 const C = 2;
18 const C = 3;
H A Dfinal_const10.phpt8 const C = 1;
13 const C = 2;
18 const C = 3;
/PHP-8.2/Zend/tests/array_unpack/
H A Dclasses.phpt7 public const FOO = [0, ...self::ARR, 4];
8 public const ARR = [1, 2, 3];
13 public const A = [...self::B];
14 public const B = [...self::A];
/PHP-8.2/Zend/tests/traits/
H A Dconstant_002.phpt7 public const A = 42;
11 public const A = 42;
16 public const A = 42;
32 public const A = 42;

Completed in 25 milliseconds

12345678910>>...20