Home
last modified time | relevance | path

Searched refs:yield (Results 26 – 50 of 292) sorted by relevance

12345678910>>...12

/PHP-8.3/ext/zend_test/tests/
H A Dobserver_generator_03.phpt2 Observer: Generator with 'yield from'
14 yield $i;
19 yield 0;
20 yield 1;
21 yield from barResults();
22 yield 42;
/PHP-8.3/Zend/tests/generators/
H A Dauto_incrementing_keys.phpt7 yield 'foo';
8 yield 'bar';
9 yield 5 => 'rab';
10 yield 'oof';
H A Dyield_from_force_closed.phpt2 Cannot "yield from" from force closed generator
8 yield 1;
14 yield from gen1();
17 yield from gen1();
34 Error: Cannot use "yield from" in a force-closed generator in %s:%d
H A Dyield_in_finally_cleanup.phpt2 Free pending exceptions / return values on clone on yield in finally
9 yield;
17 yield;
28 yield;
38 yield;
H A Ddangling_send_target.phpt6 yield from [yield];
13 $x = yield;
14 yield from [1, 2, 3];
H A Dbug80240.phpt2 Bug #80240: Use after free multi yield from
7 yield 0;
8 yield from gen();
12 yield from $gen;
H A Dget_return_types.phpt8 yield;
16 yield;
24 yield;
32 yield;
40 yield;
H A Dgenerator_in_multipleiterator.phpt7 yield 'a';
8 yield 'aa';
12 yield 'b';
13 yield 'bb';
H A Dgenerator_return_without_value.phpt7 yield;
12 yield;
18 yield;
23 yield;
H A Dthrow_caught.phpt7 echo "before yield\n";
9 yield;
14 yield 'result';
22 before yield
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_from_backtrace.phpt2 Exceptions in linear yield from setup
7 yield $off + 1;
11 yield 1;
13 yield 2;
14 yield from from(2);
H A Dgc_with_root_parent_mismatch.phpt2 Generator GC when the yield from parent chain does not reach the root
7 yield 1;
8 yield 2;
12 yield from $gen;
H A Dbacktrace_multi_yield_from.phpt2 Generator backtrace with multi yield from
7 yield 1;
9 yield 2;
13 yield from $gen;
H A Dget_return.phpt8 yield 24;
16 yield 24;
25 // & for generators specifies by-reference yield, not return
29 yield $var;
41 yield 24;
52 yield 24;
64 yield 24;
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 Diterator_wrapper_leak.phpt11 yield 1;
12 yield 2;
13 yield 3;
18 yield $x;
H A Dgenerator_closure.phpt7 yield 1;
8 yield 2;
9 yield 3;
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);
/PHP-8.3/Zend/tests/
H A Dbug76946.phpt7 $gen = yield;
9 yield $v;
14 $gen = yield;
15 $gen + yield;
H A Dgh9916-006.phpt7 yield from (function () {
12 yield;
14 yield from (function () {
19 yield;
21 yield;
H A Dbug79927.phpt2 Bug #79927: Generator doesn't throw exception after multiple yield from iterable
7 yield from [1, 2, 3];
20 yield from [];
21 yield 4;
/PHP-8.3/Zend/tests/type_declarations/
H A Dtyped_properties_033.phpt2 Test typed properties yield reference guard
12 yield $this->foo;
13 yield $this->bar;
14 yield $this->baz;
15 yield $this->qux;
/PHP-8.3/Zend/tests/generators/finally/
H A Dfinally_ran_on_close.phpt9 echo "before yield\n";
10 yield;
11 echo "after yield\n";
28 before yield
/PHP-8.3/ext/reflection/tests/
H A DReflectionGenerator_getTrace.phpt7 yield 1;
8 yield 2;
13 yield from foo();
18 yield from bar();

Completed in 37 milliseconds

12345678910>>...12