Home
last modified time | relevance | path

Searched refs:yield (Results 126 – 150 of 199) sorted by last modified time

12345678

/PHP-7.4/Zend/tests/generators/
H A Dyield_in_parenthesis.phpt2 No additional parenthesis are required around yield if they are already present
7 if (yield $foo); elseif (yield $foo);
8 if (yield $foo): elseif (yield $foo): endif;
9 while (yield $foo);
10 do {} while (yield $foo);
11 switch (yield $foo) {}
12 (yield $foo);
13 die(yield $foo);
14 func(yield $foo);
15 $foo->func(yield $foo);
[all …]
H A Dyield_precedence.phpt2 Precedence of yield and arrow operators
7 yield "a" . "b";
8 yield "a" or die;
9 yield "k" => "a" . "b";
10 yield "k" => "a" or die;
11 var_dump([yield "k" => "a" . "b"]);
12 yield yield "k1" => yield "k2" => "a" . "b";
13 yield yield "k1" => (yield "k2") => "a" . "b";
14 var_dump([yield "k1" => yield "k2" => "a" . "b"]);
15 var_dump([yield "k1" => (yield "k2") => "a" . "b"]);
H A Dyield_ref_function_call_by_reference.phpt11 yield nop($var);
H A Dyield_unary_precedence.phpt2 When + or - are used on yield, they must be unary (and not binary) (Bug #69160)
6 var_dump(yield +1);
7 var_dump(yield -1);
8 var_dump(yield * -1); // other ops still should behave normally
H A Dyield_without_value.phpt2 yield can be used without a value
8 var_dump(yield);
H A Dbacktrace.phpt12 yield; // force generator
H A Dbasic_yield_from_exception_handling.phpt2 Exceptions in linear yield from setup
7 yield $off + 1;
9 yield $off + 2;
14 yield "gen" => 0;
17 yield from from(0);
19 yield from from(2);
H A Dbasic_yield_from_proxying.phpt2 Basic test if yield from works
6 yield "from" => 1;
7 yield 2;
11 yield "gen" => 0;
12 yield from from();
13 yield 3;
H A Dbug63066.phpt7 yield 'foo';
H A Dbug65035.phpt2 Bug #65035: yield / exit segfault
8 yield;
H A Dbug65161.phpt13 yield;
H A Dbug66041.phpt6 list($value) = yield;
H A Dbug67497.phpt8 yield $a;
H A Dbug69419.phpt8 yield $var;
H A Dbug70904.phpt2 Bug #70904 (yield from incorrectly marks valid generator as finished)
7 yield 1;
11 yield from $g1;
13 yield 2;
H A Dbug70965.phpt2 Bug #70965 (yield from with a common iterator primes too much)
7 yield from [1, 2, 3, 4, 5];
11 yield from $g;
H A Dbug71013.phpt2 Bug #71013 (Incorrect exception handler with yield from)
19 yield from $f;
H A Dbug71297.phpt2 Bug #71297 (Memory leak with consecutive yield from)
7 yield array_fill(0, 10000, 4);
13 yield from foo();
H A Dbug71441.phpt13 return yield \$foo;
H A Dbug71601.phpt2 Bug #71601 (finally block not executed after yield from)
8 yield 1;
9 yield 2;
19 var_dump(yield from gen1());
H A Dbug72523.phpt8 yield "okey";
H A Dbug74157.phpt9 yield $v;
H A Dbug74606.phpt13 yield;
H A Dbug74954.phpt7 yield 1;
13 var_dump(yield from $gen);
H A Dbug75396.phpt7 yield 42;

Completed in 32 milliseconds

12345678