Searched refs:const (Results 51 – 75 of 481) sorted by relevance
12345678910>>...20
/PHP-8.2/Zend/tests/ |
H A D | bug42819.phpt | 7 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 D | constant_expressions_classes.phpt | 10 # 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 D | ns_094.phpt | 8 use const Foo\Bar\{ 10 const B, 15 Parse error: syntax error, unexpected token "const", expecting "}" in %s on line %d
|
H A D | bug66015.phpt | 7 const FIRST = 1; 8 const SECOND = 2; 9 const THIRD = 3;
|
H A D | bug66252.phpt | 6 const HW = "this is A"; 9 const BHW = parent::HW . " extended by B"; 11 const C = B::BHW;
|
H A D | ns_089.phpt | 8 const FOO = 0; 9 const BAR = 1; 25 const FOO, 26 const BAR AS BOZ 31 const BAR = 100;
|
H A D | ns_090.phpt | 8 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 D | 008.phpt | 15 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 D | ns_095.phpt | 15 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 D | ns_092.phpt | 11 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 D | basic.phpt | 7 const baz = 42; 8 const qux = 43; 12 use const foo\bar\baz, foo\bar\qux;
|
H A D | alias.phpt | 7 const baz = 42; 11 const baz = 43; 15 use const foo\baz as foo_baz,
|
/PHP-8.2/tests/classes/ |
H A D | constants_basic_005.phpt | 7 const CONST_2 = self::CONST_1; 8 const CONST_1 = self::BASE_CONST; 9 const BASE_CONST = 'hello';
|
H A D | constants_scope_001.phpt | 7 const FATAL = "Fatal error\n"; 8 const WARNING = "Warning\n"; 9 const INFO = "Informational message\n"; 17 const FATAL = "Worst error\n";
|
H A D | constants_visibility_004.phpt | 6 public const X = 1; 7 protected const Y = 2; 8 private const Z = 3;
|
/PHP-8.2/ext/ffi/tests/ |
H A D | 020.phpt | 10 $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 D | gh9769.phpt | 6 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 D | constant_015.phpt | 7 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 D | constant_014.phpt | 7 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 D | info_002.phpt | 24 const A = 10; 25 const B = C::D * A; 28 const D = 10;
|
/PHP-8.2/Zend/tests/enum/ |
H A D | enum-reserved-non-modifiers.phpt | 16 const enum = 'enum const'; 31 enum const
|
/PHP-8.2/Zend/tests/prop_const_expr/ |
H A D | non_enums_cost.phpt | 2 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 D | ffi.g | 67 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 D | preload_loadable_classes_2.inc | 4 const X = UNDEF; 5 const Y = Foo::UNDEF;
|
H A D | bug73789.phpt | 10 const T_NONE = 1; 11 const T_STRING = 2; 12 const T_DOT = 8;
|
Completed in 26 milliseconds
12345678910>>...20