Home
last modified time | relevance | path

Searched refs:x (Results 201 – 225 of 1819) sorted by path

12345678910>>...73

/php-src/Zend/tests/
H A Dclass_name_as_scalar_error_006.phpt6 $x = parent::class;
H A Dclosure_001.phpt10 $lambda2 = function ($x) {
11 echo "Hello $x!\n";
H A Dclosure_002.phpt6 $x = 4;
8 $lambda1 = function () use ($x) {
9 echo "$x\n";
12 $lambda2 = function () use (&$x) {
13 echo "$x\n";
18 $x++;
H A Dclosure_003.phpt7 $x = 4;
9 $lambda1 = function () use ($x) {
10 echo "$x\n";
13 $lambda2 = function () use (&$x) {
14 echo "$x\n";
19 $x++;
H A Dclosure_004.phpt7 $x = 4;
9 $lambda1 = function () use ($x) {
10 echo "$x\n";
13 $lambda2 = function () use (&$x) {
14 echo "$x\n";
15 $x++;
H A Dclosure_005.phpt7 private $x;
9 function __construct($x) {
10 $this->x = $x;
19 $this->x += $val;
25 echo $this->x."\n";
31 echo $this->x."\n";
36 echo $this->x."\n";
H A Dclosure_007.phpt7 private $x = 0;
12 $this->x++;
18 echo $this->x."\n";
H A Dclosure_009.phpt6 $x = function ($x) use ($a) {
10 echo $x.':'.$a."\n";
12 $y = function ($x) use (&$a) {
16 echo $x.':'.$a."\n";
18 $x(1);
19 $x(2);
20 $x(3);
H A Dclosure_014.phpt20 $x = new C1();
21 var_dump($x());
23 $x();
30 $x();
33 $x = new C2();
35 $e =& $x($a);
41 $x($b);
46 $e =& $x($c);
52 $x($d);
58 $x();
[all …]
H A Dclosure_015.phpt6 $x = function() { return 1; };
8 print (string) $x;
13 print $x;
H A Dclosure_018.phpt7 public function test(&$x) {
9 $lambda = function &() use (&$x) {
10 return $x = $x * $x;
20 var_dump($x = $test->test($y));
21 var_dump($y, $x);
H A Dclosure_019.phpt6 $lambda = function &(&$x) {
7 return $x = $x * $x;
29 Fatal error: Uncaught Error: {closure:%s:%d}(): Argument #1 ($x) could not be passed by reference i…
H A Dclosure_020.phpt10 public function x() {
22 $y = $foo->x();
H A Dclosure_026.phpt21 $x = new foo;
25 foreach ($x as $b => $c) {
H A Dclosure_027.phpt15 $a = function($x) use ($y) {};
H A Dclosure_029.phpt7 var_dump(function(&$x) { } instanceof closure);
8 var_dump(@function(&$x) use ($y, $z) { } instanceof closure);
H A Dclosure_035.phpt6 $x = function () use (&$x) {
7 $h = function () use ($x) {
8 var_dump($x);
14 var_dump($x());
27 ["x"]=>
H A Dclosure_036.phpt7 private $x;
10 $this->x = $v;
14 return function() { return ++$this->x; };
H A Dclosure_037.phpt6 private $x = 0;
10 $this->x++;
18 echo $this->x."\n";
H A Dclosure_038.phpt7 private $x;
10 $this->x = $v;
14 return function() { return ++$this->x; };
18 private $x;
21 $this->x = $v*2;
58 Fatal error: Uncaught Error: Cannot access private property B::$x in %s:%d
H A Dclosure_039.phpt7 private $x;
10 $this->x = $v;
14 return function() { return ++$this->x; };
18 private $x;
21 $this->x = $v*2;
58 Fatal error: Uncaught Error: Cannot access private property B::$x in %s:%d
H A Dclosure_040.phpt7 private $x;
11 $this->x = $v;
15 return function() { return ++$this->x; };
H A Dclosure_058.phpt25 $x = new A();
26 $b = $x->bar();
H A Dclosure_call.phpt7 public $x = 0;
10 return $this->x;
19 $foobar->x = 3;
30 return $this->x;
34 $elePHPant->x = 7;
41 return $this->x * $z;
49 private $x = 3;
53 var_dump($this->x);
/php-src/Zend/tests/closures/
H A Dclosure_from_callable_gc.phpt10 static $x;
11 $x = $y;

Completed in 33 milliseconds

12345678910>>...73