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

/PHP_TRUNK/Zend/
H A Dzend_generators.h36 /* The separate stack used by generator */
58 ZEND_API void zend_generator_close(zend_generator *generator, zend_bool finished_execution TSRMLS_DC);
59 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 if (Z_REFCOUNTED_P(generator->send_target)) Z_DELREF_P(generator->send_target);
39 generator->send_target = NULL;
89 ZEND_API void zend_generator_close(zend_generator *generator, zend_bool finished_execution TSRMLS_DC) /* {{{ */ argument
91 if (Z_TYPE(generator->value) != IS_UNDEF) {
92 zval_ptr_dtor(&generator->value);
93 ZVAL_UNDEF(&generator
144 zend_generator *generator = (zend_generator*) object; local
184 zend_generator *generator = (zend_generator*) object; local
198 zend_generator *generator; local
227 zend_generator *generator; local
371 zend_generator *generator; local
387 zend_generator *generator; local
405 zend_generator *generator; local
425 zend_generator *generator; local
445 zend_generator *generator; local
464 zend_generator *generator; local
498 zend_generator *generator; local
552 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
561 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
571 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
581 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
595 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
605 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
623 zend_generator *generator = (zend_generator*)Z_OBJ_P(object); local
[all...]
H A Dzend_vm_def.h2914 /* The generator object is stored in EX(return_value) */
2915 zend_generator *generator = (zend_generator *) EX(return_value); variable
2917 /* Close the generator to free up resources */
2918 zend_generator_close(generator, 1 TSRMLS_CC);
5639 /* The generator object is stored in EX(return_value) */
5640 zend_generator *generator = (zend_generator *) EX(return_value); variable
5642 if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
5643 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
5647 zval_ptr_dtor(&generator->value);
5650 zval_ptr_dtor(&generator
[all...]
H A Dzend_vm_execute.h708 /* The generator object is stored in EX(return_value) */
709 zend_generator *generator = (zend_generator *) EX(return_value); local
711 /* Close the generator to free up resources */
712 zend_generator_close(generator, 1 TSRMLS_CC);
4817 /* The generator object is stored in EX(return_value) */
4818 zend_generator *generator = (zend_generator *) EX(return_value); local
4820 if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
4821 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
4825 zval_ptr_dtor(&generator->value);
4828 zval_ptr_dtor(&generator
5848 zend_generator *generator = (zend_generator *) EX(return_value); local
7183 zend_generator *generator = (zend_generator *) EX(return_value); local
7928 zend_generator *generator = (zend_generator *) EX(return_value); local
8990 zend_generator *generator = (zend_generator *) EX(return_value); local
11422 zend_generator *generator = (zend_generator *) EX(return_value); local
12409 zend_generator *generator = (zend_generator *) EX(return_value); local
13701 zend_generator *generator = (zend_generator *) EX(return_value); local
14305 zend_generator *generator = (zend_generator *) EX(return_value); local
15270 zend_generator *generator = (zend_generator *) EX(return_value); local
19297 zend_generator *generator = (zend_generator *) EX(return_value); local
21292 zend_generator *generator = (zend_generator *) EX(return_value); local
23656 zend_generator *generator = (zend_generator *) EX(return_value); local
24862 zend_generator *generator = (zend_generator *) EX(return_value); local
26894 zend_generator *generator = (zend_generator *) EX(return_value); local
28358 zend_generator *generator = (zend_generator *) EX(return_value); local
29643 zend_generator *generator = (zend_generator *) EX(return_value); local
30928 zend_generator *generator = (zend_generator *) EX(return_value); local
31444 zend_generator *generator = (zend_generator *) EX(return_value); local
32720 zend_generator *generator = (zend_generator *) EX(return_value); local
36336 zend_generator *generator = (zend_generator *) EX(return_value); local
38242 zend_generator *generator = (zend_generator *) EX(return_value); local
40486 zend_generator *generator = (zend_generator *) EX(return_value); local
41556 zend_generator *generator = (zend_generator *) EX(return_value); local
43468 zend_generator *generator = (zend_generator *) EX(return_value); local
[all...]
/PHP_TRUNK/ext/interbase/
H A Dinterbase.c108 ZEND_ARG_INFO(0, generator)
1422 /* {{{ proto int ibase_gen_id(string generator [, int increment [, resource link_identifier ]])
1423 Increments the named generator and returns its new value */
1427 char query[128], *generator; local
1437 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lr", &generator, &gen_len,
1443 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid generator name");
1449 snprintf(query, sizeof(query), "SELECT GEN_ID(%s,%ld) FROM rdb$database", generator, inc);
1468 /* don't return the generator value as a string unless it doesn't fit in a long */

Completed in 38 milliseconds