Home
last modified time | relevance | path

Searched refs:x (Results 251 – 275 of 1819) sorted by path

1...<<11121314151617181920>>...73

/php-src/Zend/tests/
H A Dctor_promotion_null_default.phpt7 public function __construct(public int $x = null) {}
12 Fatal error: Cannot use null as default value for parameter $x of type int in %s on line %d
H A Ddereference_001.phpt38 $x = array('a' => 'foo', 'b' => $y);
39 return $x;
H A Ddereference_002.phpt10 $x = array();
11 $x[] = 3;
12 $x[] = array(1, 5);
13 $x[] = new foo;
14 return $x;
22 var_dump($x[0]);
24 var_dump($x->bar());
25 var_dump($x->bar()[0]);
27 $x = array();
28 $x[] = new foo;
[all …]
H A Ddereference_003.phpt9 public $x = 2;
11 $x = array();
12 $x[] = new foo;
13 return $x;
31 var_dump($foo->a()[0]->x);
33 var_dump($foo->b()[1][0]->a()[0]->x);
41 ["x"]=>
H A Ddereference_004.phpt9 public $x = array();
13 $this->x = $h;
16 return $this->x;
H A Ddereference_005.phpt31 function x() {
34 var_dump(x()['two']);
H A Ddereference_007.phpt9 public $x = array();
12 return $this->x;
16 return $x;
36 Warning: Undefined variable $x in %s on line %d
H A Ddereference_008.phpt9 public $x = array(1);
12 return $this->x;
H A Ddereference_012.phpt7 static $x = array();
10 self::$x = array(1, 2, 3);
11 return self::$x;
15 $x = array(1);
16 $x[] = 2;
17 return $x;
25 var_dump($foo::$x);
H A Ddereference_013.phpt9 public $x = array(2);
11 public function __call($x, $y) {
12 if (count($this->x) == 1) {
13 $this->x[] = $y[0];
15 return $this->x;
21 $x = array(1);
23 $foo->b($x)[1] = 3;
H A Ddereference_014.phpt9 public $x;
13 return $this->x;
H A Ddim_assign_001.phpt17 sscanf($line, '%x', $char);
H A Ddiv_by_zero_compound_with_conversion.phpt5 $x = 42;
7 $$x /= 0;
H A Ddouble_array_cast.phpt6 $array = [1, 2, $x = 3];
H A Ddynamic_call_non_static.phpt16 $x = new Foo;
18 $x->test1();
23 $x->test2();
H A Ddynamic_call_to_ref_returning_function.phpt8 function &retRef($x) {
9 return $x;
15 $closure = function &($x) {
16 return $x;
24 function &method($x) {
25 return $x;
H A Dexception_014.phpt9 $x = new C;
11 var_dump($x->p);
16 var_dump($x->p);
H A Dexception_017.phpt9 function foo(callable $x) {
31 TypeError: foo(): Argument #1 ($x) must be of type callable, string given, called in %s:%d
H A Dexception_during_by_reference_magic_get.phpt7 private $x;
16 $test->x =& $y;
H A Dexception_from_toString.phpt16 try { $x = $str . $badStr; }
18 try { $x = $badStr . $str; }
20 try { $x = $str .= $badStr; }
23 try { $x = $num . $badStr; }
38 try { $x = "x$badStr"; }
40 try { $x = "{$badStr}x"; }
47 try { $x = "x$badStr$str"; }
49 try { $x = "x$str$badStr"; }
51 try { $x = "{$str}x$badStr"; }
53 try { $x = "{$badStr}x$str"; }
[all …]
/php-src/Zend/tests/enum/
H A Dbacked-int-const-invalid-expr.phpt7 case Bar = 1 + $x;
/php-src/Zend/tests/fibers/
H A Dfailing-nested-fiber.phpt7 $fiber = new Fiber(function (int $x, int $y): void {
8 Fiber::suspend($x + $y);
H A Dget-return.phpt7 $value = Fiber::suspend("x");
18 string(1) "x"
H A Dgh10496-001.phpt6 function x(&$ref) {
9 print "Dtor x()\n";
13 function suspend($x) {
18 x($var);
32 Dtor x()
H A Dstart-arguments.phpt6 $fiber = new Fiber(function (int $x): int {
7 return $x + Fiber::suspend($x);
10 $x = $fiber->start(1);
14 $fiber = new Fiber(function (int $x): int {
15 return $x + Fiber::suspend($x);
24 Fatal error: Uncaught TypeError: {closure:%s:%d}(): Argument #1 ($x) must be of type int, string gi…

Completed in 26 milliseconds

1...<<11121314151617181920>>...73