Home
last modified time | relevance | path

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

12345678

/PHP-7.4/Zend/tests/generators/
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 Dget_return_types.phpt8 yield;
16 yield;
24 yield;
32 yield;
40 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 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 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 Dgenerator_closure.phpt7 yield 1;
8 yield 2;
9 yield 3;
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 Dyield_from_iterator_agregate.phpt2 yield from with an IteratorAggregate
9 yield;
13 yield from new foo;
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 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 Dbug71297.phpt2 Bug #71297 (Memory leak with consecutive yield from)
7 yield array_fill(0, 10000, 4);
13 yield from foo();
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 Dbug78434.phpt7 yield 0;
13 yield from $generator;
17 yield from $generator;
H A Dgenerator_static_method.phpt10 yield 1;
11 yield 2;
12 yield 3;
/PHP-7.4/ext/pcre/pcre2lib/
H A Dpcre2_match_data.c59 pcre2_match_data *yield; in pcre2_match_data_create() local
61 yield = PRIV(memctl_malloc)( in pcre2_match_data_create()
64 if (yield == NULL) return NULL; in pcre2_match_data_create()
65 yield->oveccount = oveccount; in pcre2_match_data_create()
66 yield->flags = 0; in pcre2_match_data_create()
67 return yield; in pcre2_match_data_create()
/PHP-7.4/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-7.4/ext/reflection/tests/
H A DReflectionGenerator_getTrace.phpt7 yield 1;
8 yield 2;
13 yield from foo();
18 yield from bar();
/PHP-7.4/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-7.4/Zend/tests/
H A Dbug72373.phpt7 yield 1;
8 yield 2;
9 yield 3;
H A Dbug79657.phpt2 Bug #79657: "yield from" hangs when invalid value encountered
15 yield 'first';
18 yield from throwException();
23 yield from $callback();
H A Dbug69740.phpt2 Bug #69740: finally in generator (yield) swallows exception in iteration
8 yield 1;
9 yield 2;
/PHP-7.4/Zend/tests/return_types/
H A Dgenerators001.phpt6 yield 1;
10 yield 2;
14 yield 3;
/PHP-7.4/Zend/tests/arrow_functions/
H A D008.phpt8 $fn = fn() => yield 123;
13 $fn = fn() => yield from [456, 789];
18 $fn = fn() => fn() => yield 987;

Completed in 24 milliseconds

12345678