Home
last modified time | relevance | path

Searched refs:const (Results 51 – 75 of 481) sorted by relevance

12345678910>>...20

/PHP-8.2/Zend/tests/
H A Dbug42819.phpt7 const C = "foo\\foo\\C\n";
8 const I = 12;
11 const I = 32;
18 const C = "foo\\C\n";
19 const I = 11;
23 const I = 22;
24 const C1 = C;
25 const C2 = foo\C;
26 const C3 = foo\foo::C;
27 const C4 = \foo\C;
[all …]
H A Dconstant_expressions_classes.phpt10 # This test validates that autoloading works for common const expression (AST) use cases
12 'A'=> 'class A { const HW = "this is A"; }',
13 'B'=> 'class B extends A { const HW = parent::HW." extended by B"; }',
14 'space1\C' => 'namespace space1; class C { const HW = "this is space1\C"; }',
15 'D' => 'class D { const HW = \space1\C::HW." extended by D"; }',
18 'F' => 'class F { const XX = "this is F"; }',
19 …'G' => 'class G extends F { const XX = parent::XX." extended by G"; public static function get_me(…
H A Dns_094.phpt8 use const Foo\Bar\{
10 const B,
15 Parse error: syntax error, unexpected token "const", expecting "}" in %s on line %d
H A Dbug66015.phpt7 const FIRST = 1;
8 const SECOND = 2;
9 const THIRD = 3;
H A Dbug66252.phpt6 const HW = "this is A";
9 const BHW = parent::HW . " extended by B";
11 const C = B::BHW;
H A Dns_089.phpt8 const FOO = 0;
9 const BAR = 1;
25 const FOO,
26 const BAR AS BOZ
31 const BAR = 100;
H A Dns_090.phpt8 const FOO = 0;
9 const BAR = 1;
18 use Foo\Bar\Baz\{ function foo, function bar as buz, const FOO, const BAR AS BOZ };
22 const BAR = 100;
H A D008.phpt15 var_dump(define("test const", 3));
16 var_dump(define("test const", 3));
23 var_dump(constant("test const"));
36 Warning: Constant test const already defined in %s on line %d
H A Dns_095.phpt15 const CONST_A = 1;
16 const CONST_B = 2;
17 const CONST_C = 3;
24 use const \Foo\Bar\{CONST_A, CONST_B, CONST_C};
H A Dns_092.phpt11 const FOO = 1;
12 const BAR = 2;
23 use const Foo\Bar\{
29 use Foo\Bar\{ A, B, const BAR as BOZ };
32 const FOO = 100;
/PHP-8.2/Zend/tests/use_const/
H A Dbasic.phpt7 const baz = 42;
8 const qux = 43;
12 use const foo\bar\baz, foo\bar\qux;
H A Dalias.phpt7 const baz = 42;
11 const baz = 43;
15 use const foo\baz as foo_baz,
/PHP-8.2/tests/classes/
H A Dconstants_basic_005.phpt7 const CONST_2 = self::CONST_1;
8 const CONST_1 = self::BASE_CONST;
9 const BASE_CONST = 'hello';
H A Dconstants_scope_001.phpt7 const FATAL = "Fatal error\n";
8 const WARNING = "Warning\n";
9 const INFO = "Informational message\n";
17 const FATAL = "Worst error\n";
H A Dconstants_visibility_004.phpt6 public const X = 1;
7 protected const Y = 2;
8 private const Z = 3;
/PHP-8.2/ext/ffi/tests/
H A D020.phpt10 $p = FFI::new("struct {int x; const int y;}");
18 $p = FFI::new("struct {const int x; int y;}");
26 $p = FFI::new("const struct {int x; int y;}");
33 $p = FFI::new("const int[10]");
40 $p = FFI::new("const int * [1]");
47 $p = FFI::new("int * const [1]");
54 $f = FFI::cdef("typedef int * const t[1];");
/PHP-8.2/Zend/tests/array_unpack/
H A Dgh9769.phpt6 const A = [...[1, 2, 3]];
7 const B = [...['a'=>1, 'b'=>2, 'c'=>3]];
8 const C = [...new ArrayObject()];
/PHP-8.2/Zend/tests/traits/
H A Dconstant_015.phpt7 public final const Constant = 123;
11 public final const Constant = 123;
19 public final const Constant = 123;
23 public final const Constant = 456;
H A Dconstant_014.phpt7 public final const Constant = 123;
12 public final const Constant = 123;
16 public final const Constant = 456;
/PHP-8.2/sapi/phpdbg/tests/
H A Dinfo_002.phpt24 const A = 10;
25 const B = C::D * A;
28 const D = 10;
/PHP-8.2/Zend/tests/enum/
H A Denum-reserved-non-modifiers.phpt16 const enum = 'enum const';
31 enum const
/PHP-8.2/Zend/tests/prop_const_expr/
H A Dnon_enums_cost.phpt2 Disallow fetching properties in constant expressions on non-enums even if lhs is other const
10 const A = new A();
11 const A_prop = A->prop;
/PHP-8.2/ext/ffi/
H A Dffi.g67 static void yy_error_str(const char *msg, const char *str);
77 {const char *name;}
177 {const char *name;}
330 {const char *name;}
463 {const char *name;}
501 {const char *name;}
522 | "const"
537 {const char *name;}
711 {const char *name;}
825 | "const"
[all …]
/PHP-8.2/ext/opcache/tests/
H A Dpreload_loadable_classes_2.inc4 const X = UNDEF;
5 const Y = Foo::UNDEF;
H A Dbug73789.phpt10 const T_NONE = 1;
11 const T_STRING = 2;
12 const T_DOT = 8;

Completed in 26 milliseconds

12345678910>>...20