Searched refs:generator (Results 1 – 25 of 46) sorted by relevance
12
/PHP-5.6/Zend/ |
H A D | zend_generators.c | 101 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 D | zend_generators.h | 66 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 D | zend_vm_execute.h | 4484 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 D | bug62991.phpt | 2 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 D | bug69221_2.phpt | 2 Bug #69221: Segmentation fault when using a generator in combination with an Iterator (2)
|
H A D | bug69221.phpt | 2 Bug #69221: Segmentation fault when using a generator in combination with an Iterator
|
H A D | bug69599.phpt | 2 Bug #69599: Strange generator+exception+variadic crash
|
/PHP-5.6/Zend/tests/generators/ |
H A D | generator_returns_generator.phpt | 2 A generator function returns a Generator object 9 // trigger a generator 13 $generator = gen(); 14 var_dump($generator instanceof Generator);
|
H A D | generator_rewind.phpt | 2 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 D | nested_calls_with_die.phpt | 2 Test nested calls with die() in a generator 8 yield; // force generator 22 yield; // force generator
|
H A D | func_get_args.phpt | 2 func_get_args() can be used inside generator functions 8 yield; // trigger generator
|
H A D | bug66041.phpt | 13 $generator = dumpElement(); 14 $generator->send($fixedArray);
|
H A D | backtrace.phpt | 2 Printing the stack trace in a generator 12 yield; // force generator
|
H A D | bug67497.phpt | 2 Bug #67467: eval with parse error causes segmentation fault in generator
|
H A D | send_returns_current.phpt | 2 $generator->send() returns the yielded value
|
H A D | xrange.phpt | 2 Simple generator xrange() test
|
H A D | dynamic_call.phpt | 2 It's possible to invoke a generator dynamically
|
H A D | no_foreach_var_leaks.phpt | 15 // generator is closed here, without running SWITCH_FREE
|
H A D | bug69419.phpt | 2 Bug #69419: Returning compatible sub generator produces a warning
|
H A D | generator_static_method.phpt | 2 A static method can be a generator
|
/PHP-5.6/ext/spl/tests/ |
H A D | bug72684.phpt | 2 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 D | bug64007.phpt | 7 $generator = $reflection->newInstanceWithoutConstructor(); 8 var_dump($generator); 13 $generator = $reflection->newInstance(); 14 var_dump($generator);
|
/PHP-5.6/Zend/tests/generators/errors/ |
H A D | resume_running_generator_error.phpt | 2 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 D | yield_in_force_closed_finally_error.phpt | 2 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 D | return_return.phpt | 2 try { return } finally { return } in generator 23 yield; // force generator
|
Completed in 123 milliseconds
12