Home
last modified time | relevance | path

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

12345678910>>...24

/php-src/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-src/Zend/tests/constant_expressions/
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 …]
/php-src/Zend/tests/
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 Ddynamic_class_const_fetch_cache_slot.phpt7 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 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 Ddynamic_class_const_fetch_const_expr.phpt7 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 Dconstants_007.phpt2 Testing const names
6 const a = 'a';
7 const A = 'b';
11 const a = 'c';
12 const A = 'd';
/php-src/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 …]
/php-src/Zend/tests/type_declarations/
H A Dtyped_class_constants_inheritance_success1.phpt6 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 Dtyped_class_constants_inheritance_success4.phpt6 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 Dtyped_class_constants_inheritance_success2.phpt14 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 Dtyped_class_constants_type_success1.phpt6 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 Dtyped_class_constants_type_success3.phpt6 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-src/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-src/Zend/tests/namespaces/
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
/php-src/Zend/tests/group_use/
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
/php-src/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-src/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"

Completed in 25 milliseconds

12345678910>>...24