Home
last modified time | relevance | path

Searched refs:x (Results 226 – 250 of 1819) sorted by path

12345678910>>...73

/php-src/Zend/tests/closures/
H A Dclosure_from_callable_reflection.phpt15 $fn = function (Bar $bar, int $x, $none) {};
H A Dclosure_instantiate.phpt10 $x = new Closure();
/php-src/Zend/tests/
H A Dcode_before_loop_var_free.phpt5 switch ($x > 0) {
12 Warning: Undefined variable $x in %s on line %d
H A Dcompound_assign_failure.phpt40 $x = 1;
55 $x = 1;
70 $x = 1;
85 $x = 1;
100 $x = 1;
115 $x = 1;
130 $x = 1;
145 $x = 1;
160 $x = 1;
175 $x = 1;
[all …]
H A Dconcat_002.phpt2 Stress test $x .= $x
H A Dconstant_arrays.phpt11 $x = FOOBAR;
12 $x[0] = 7;
13 var_dump($x, FOOBAR);
15 $x = FOO_BAR;
16 $x[0] = 7;
17 var_dump($x, FOO_BAR);
20 $x = 7;
21 $y = [&$x];
24 var_dump($x, $y, QUX);
H A Dconstant_expressions_classes.phpt19 …parent::XX." extended by G"; public static function get_me($x = "got ".self::XX) { return $x; } }',
H A Dconstants_009.phpt6 namespace foo\x;
8 const x = 2;
10 class x {
11 const x = 1;
15 var_dump(namespace\x,
16 x::x,
17 namespace\x::x);
18 var_dump(defined('foo\x\x'));
H A Dconstructor_abstract_grantparent.phpt7 abstract function __construct(X $x);
10 function __construct(X $x) {}
18 Fatal error: Declaration of C::__construct() must be compatible with A::__construct(X $x) in %s on …
H A Dconstructor_args.phpt9 public function __construct($x = 1) {
13 public function __construct($x = 1, $y = 2) {
H A Dctor_promotion_abstract.phpt7 abstract public function __construct(public int $x);
H A Dctor_promotion_additional_modifiers.phpt7 public function __construct(public static $x) {}
H A Dctor_promotion_basic.phpt7 public function __construct(public int $x, public int $y, public int $z) {}
14 $point->x = "foo";
21 Cannot assign string to property Point::$x of type int
H A Dctor_promotion_defaults.phpt8 public float $x = 0.0,
21 ["x"]=>
29 ["x"]=>
37 ["x"]=>
H A Dctor_promotion_interface.phpt7 public function __construct(public int $x);
H A Dctor_promotion_not_a_ctor.phpt7 public function foobar(public int $x, public int $y) {}
/php-src/Zend/tests/constexpr/
H A Dnew_anon_class.phpt6 static $x = new class {};
8 var_dump($x);
H A Dnew_arg_eval.phpt7 public function __construct(public $x) {}
12 $c = new C(x: __FILE__),
27 ["x"]=>
31 ["x"]=>
35 ["x"]=>
39 ["x"]=>
41 ["x"]=>
H A Dnew_arg_unpack.phpt6 static $x = new stdClass(...[0]);
8 var_dump($x);
H A Dnew_dynamic_class_name.phpt8 static $x = new (FOO);
10 var_dump($x);
H A Dnew_invalid_operation_in_arg.phpt7 static $x = new stdClass($foo);
H A Dnew_named_params.phpt7 public function __construct(public float $x, public float $y, public float $z) {}
10 static $a = new Vec(x: 0.0, y: 1.0, z: 2.0);
13 static $b = new Vec(z: 0.0, y: 1.0, x: 2.0);
20 eval('static $d = new Vec(x: 0.0, x: 1.0);');
28 ["x"]=>
36 ["x"]=>
44 ["x"]=>
51 Named parameter $x overwrites previous argument
H A Dnew_positional_after_named.phpt6 static $x = new stdClass(x: 0, 1);
H A Dnew_self_parent.phpt7 public static function invalid($x = new parent) {
11 public static function method($x = new self, $y = new parent) {
12 var_dump($x, $y);
16 function invalid($x = new self) {}
H A Dnew_static.phpt8 static $x = new static;
9 return $x;
13 $x = Foo::singleton();
15 var_dump($x, $y);

Completed in 37 milliseconds

12345678910>>...73