Home
last modified time | relevance | path

Searched refs:generator (Results 1 – 25 of 46) sorted by relevance

12

/PHP-5.6/Zend/
H A Dzend_generators.c101 if (generator->value) { in zend_generator_close()
103 generator->value = NULL; in zend_generator_close()
106 if (generator->key) { in zend_generator_close()
108 generator->key = NULL; in zend_generator_close()
162 efree(generator->stack); in zend_generator_close()
215 efree(generator); in zend_generator_free_storage()
407 if (generator->execute_data && !generator->value) { in zend_generator_ensure_initialized()
472 if (generator->value) { in ZEND_METHOD()
492 if (generator->key) { in ZEND_METHOD()
545 if (generator->value) { in ZEND_METHOD()
[all …]
H A Dzend_generators.h66 ZEND_API void zend_generator_close(zend_generator *generator, zend_bool finished_execution TSRMLS_D…
67 ZEND_API void zend_generator_resume(zend_generator *generator TSRMLS_DC);
H A Dzend_vm_execute.h4484 generator->largest_used_integer_key = Z_LVAL_P(generator->key); in ZEND_YIELD_SPEC_CONST_CONST_HANDLER()
4492 ZVAL_LONG(generator->key, generator->largest_used_integer_key); in ZEND_YIELD_SPEC_CONST_CONST_HANDLER()
5189 generator->largest_used_integer_key = Z_LVAL_P(generator->key); in ZEND_YIELD_SPEC_CONST_TMP_HANDLER()
5197 ZVAL_LONG(generator->key, generator->largest_used_integer_key); in ZEND_YIELD_SPEC_CONST_TMP_HANDLER()
6219 generator->largest_used_integer_key = Z_LVAL_P(generator->key); in ZEND_YIELD_SPEC_CONST_VAR_HANDLER()
6228 ZVAL_LONG(generator->key, generator->largest_used_integer_key); in ZEND_YIELD_SPEC_CONST_VAR_HANDLER()
6974 ZVAL_LONG(generator->key, generator->largest_used_integer_key); in ZEND_YIELD_SPEC_CONST_UNUSED_HANDLER()
7723 ZVAL_LONG(generator->key, generator->largest_used_integer_key); in ZEND_YIELD_SPEC_CONST_CV_HANDLER()
9789 ZVAL_LONG(generator->key, generator->largest_used_integer_key); in ZEND_YIELD_SPEC_TMP_CONST_HANDLER()
10496 ZVAL_LONG(generator->key, generator->largest_used_integer_key); in ZEND_YIELD_SPEC_TMP_TMP_HANDLER()
[all …]
/PHP-5.6/Zend/tests/
H A Dbug62991.phpt2 Bug #62991 (Segfault with generator and closure)
24 $generator = test(array( 1, 2, 3 ) );
25 foreach($generator as $something) {
28 $generator = test2(array( 1, 2, 3 ) );
29 foreach($generator() as $something) {
33 $generator = test2(array( 1, 2, 3 ) );
H A Dbug69221_2.phpt2 Bug #69221: Segmentation fault when using a generator in combination with an Iterator (2)
H A Dbug69221.phpt2 Bug #69221: Segmentation fault when using a generator in combination with an Iterator
H A Dbug69599.phpt2 Bug #69599: Strange generator+exception+variadic crash
/PHP-5.6/Zend/tests/generators/
H A Dgenerator_returns_generator.phpt2 A generator function returns a Generator object
9 // trigger a generator
13 $generator = gen();
14 var_dump($generator instanceof Generator);
H A Dgenerator_rewind.phpt2 A generator can only be rewinded before or at the first yield
39 echo "in generator\n";
52 exception 'Exception' with message 'Cannot rewind a generator that was already run' in %s:%d
57 exception 'Exception' with message 'Cannot traverse an already closed generator' in %s:%d
62 in generator
H A Dnested_calls_with_die.phpt2 Test nested calls with die() in a generator
8 yield; // force generator
22 yield; // force generator
H A Dfunc_get_args.phpt2 func_get_args() can be used inside generator functions
8 yield; // trigger generator
H A Dbug66041.phpt13 $generator = dumpElement();
14 $generator->send($fixedArray);
H A Dbacktrace.phpt2 Printing the stack trace in a generator
12 yield; // force generator
H A Dbug67497.phpt2 Bug #67467: eval with parse error causes segmentation fault in generator
H A Dsend_returns_current.phpt2 $generator->send() returns the yielded value
H A Dxrange.phpt2 Simple generator xrange() test
H A Ddynamic_call.phpt2 It's possible to invoke a generator dynamically
H A Dno_foreach_var_leaks.phpt15 // generator is closed here, without running SWITCH_FREE
H A Dbug69419.phpt2 Bug #69419: Returning compatible sub generator produces a warning
H A Dgenerator_static_method.phpt2 A static method can be a generator
/PHP-5.6/ext/spl/tests/
H A Dbug72684.phpt2 Bug #72684 (AppendIterator segfault with closed generator)
7 $generator = createGenerator();
10 $appendIterator->append($generator);
21 Cannot traverse an already closed generator
/PHP-5.6/ext/reflection/tests/
H A Dbug64007.phpt7 $generator = $reflection->newInstanceWithoutConstructor();
8 var_dump($generator);
13 $generator = $reflection->newInstance();
14 var_dump($generator);
/PHP-5.6/Zend/tests/generators/errors/
H A Dresume_running_generator_error.phpt2 It is not possible to resume an already running generator
17 Fatal error: Cannot resume an already running generator in %s on line %d
H A Dyield_in_force_closed_finally_error.phpt2 yield cannot be used in a finally block when the generator is force-closed
29 Fatal error: Cannot yield from finally in a force-closed generator in %s on line %d
/PHP-5.6/Zend/tests/generators/finally/
H A Dreturn_return.phpt2 try { return } finally { return } in generator
23 yield; // force generator

Completed in 123 milliseconds

12