Searched refs:generator (Results 1 - 5 of 5) sorted by relevance

/PHP_TRUNK/Zend/
H A Dzend_generators.h31 /* The generator object zval has to be stored, because the iterator is
44 /* The separate stack used by generator */
66 ZEND_API void zend_generator_close(zend_generator *generator, zend_bool finished_execution TSRMLS_DC);
67 ZEND_API void zend_generator_resume(zend_generator *generator TSRMLS_DC);
H A Dzend_generators.c32 static void zend_generator_cleanup_unfinished_execution(zend_generator *generator TSRMLS_DC) /* {{{ */
34 zend_execute_data *execute_data = generator->execute_data;
37 if (generator->send_target) {
38 Z_DELREF_PP(generator->send_target);
39 generator->send_target = NULL;
80 void **ptr = generator->stack->top - 1;
99 ZEND_API void zend_generator_close(zend_generator *generator, zend_bool finished_execution TSRMLS_DC) /* {{{ */ argument
101 if (generator->value) {
102 zval_ptr_dtor(&generator->value);
103 generator
168 zend_generator_dtor_storage(zend_generator *generator, zend_object_handle handle TSRMLS_DC) argument
218 zend_generator *generator; local
255 zend_generator *generator; local
425 zend_generator *generator; local
441 zend_generator *generator; local
459 zend_generator *generator; local
479 zend_generator *generator; local
499 zend_generator *generator; local
518 zend_generator *generator; local
553 zend_generator *generator; local
616 zend_generator *generator = (zend_generator *) iterator->data; local
626 zend_generator *generator = (zend_generator *) iterator->data; local
640 zend_generator *generator = (zend_generator *) iterator->data; local
654 zend_generator *generator = (zend_generator *) iterator->data; local
664 zend_generator *generator = (zend_generator *) iterator->data; local
682 zend_generator *generator; local
[all...]
H A Dzend_vm_def.h2959 /* The generator object is stored in return_value_ptr_ptr */
2960 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); variable
2962 /* Close the generator to free up resources */
2963 zend_generator_close(generator, 1 TSRMLS_CC);
5465 /* The generator object is stored in return_value_ptr_ptr */
5466 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); variable
5468 if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
5469 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
5473 if (generator->value) {
5474 zval_ptr_dtor(&generator
[all...]
H A Dzend_vm_execute.h698 /* The generator object is stored in return_value_ptr_ptr */
699 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
701 /* Close the generator to free up resources */
702 zend_generator_close(generator, 1 TSRMLS_CC);
4354 /* The generator object is stored in return_value_ptr_ptr */
4355 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
4357 if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
4358 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
4362 if (generator->value) {
4363 zval_ptr_dtor(&generator
5057 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
6084 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
6829 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
7575 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
9638 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
10342 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
11371 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
11966 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
12652 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
16558 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
18648 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
21118 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
22286 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
24410 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
25922 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
27236 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
28550 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
28980 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
30291 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
33788 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
35739 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
38069 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
39088 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
41072 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
[all...]
/PHP_TRUNK/ext/interbase/
H A Dinterbase.c108 ZEND_ARG_INFO(0, generator)
1404 /* {{{ proto int ibase_gen_id(string generator [, int increment [, resource link_identifier ]])
1405 Increments the named generator and returns its new value */
1409 char query[128], *generator; local
1419 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lr", &generator, &gen_len,
1425 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid generator name");
1431 snprintf(query, sizeof(query), "SELECT GEN_ID(%s,%ld) FROM rdb$database", generator, inc);
1450 /* don't return the generator value as a string unless it doesn't fit in a long */

Completed in 56 milliseconds