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;
79 ZEND_API void zend_generator_close(zend_generator *generator, zend_bool finished_execution TSRMLS_DC) /* {{{ */ argument
81 if (Z_TYPE(generator->value) != IS_UNDEF) {
82 zval_ptr_dtor(&generator->value);
83 ZVAL_UNDEF(&generator
134 zend_generator *generator = (zend_generator*) object; local
174 zend_generator *generator = (zend_generator*) object; local
188 zend_generator *generator; local
217 zend_generator *generator; local
361 zend_generator *generator; local
377 zend_generator *generator; local
395 zend_generator *generator; local
415 zend_generator *generator; local
435 zend_generator *generator; local
454 zend_generator *generator; local
488 zend_generator *generator; local
542 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
551 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
585 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
595 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
613 zend_generator *generator = (zend_generator*)Z_OBJ_P(object); local
[all...]
H A Dzend_vm_def.h2822 /* The generator object is stored in EX(return_value) */
2823 zend_generator *generator = (zend_generator *) EX(return_value); variable
2825 /* Close the generator to free up resources */
2826 zend_generator_close(generator, 1 TSRMLS_CC);
5592 /* The generator object is stored in EX(return_value) */
5593 zend_generator *generator = (zend_generator *) EX(return_value); variable
5595 if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
5596 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
5600 zval_ptr_dtor(&generator->value);
5603 zval_ptr_dtor(&generator
[all...]
H A Dzend_vm_execute.h693 /* The generator object is stored in EX(return_value) */
694 zend_generator *generator = (zend_generator *) EX(return_value); local
696 /* Close the generator to free up resources */
697 zend_generator_close(generator, 1 TSRMLS_CC);
4776 /* The generator object is stored in EX(return_value) */
4777 zend_generator *generator = (zend_generator *) EX(return_value); local
4779 if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
4780 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
4784 zval_ptr_dtor(&generator->value);
4787 zval_ptr_dtor(&generator
5802 zend_generator *generator = (zend_generator *) EX(return_value); local
7134 zend_generator *generator = (zend_generator *) EX(return_value); local
7881 zend_generator *generator = (zend_generator *) EX(return_value); local
8938 zend_generator *generator = (zend_generator *) EX(return_value); local
11357 zend_generator *generator = (zend_generator *) EX(return_value); local
12339 zend_generator *generator = (zend_generator *) EX(return_value); local
13628 zend_generator *generator = (zend_generator *) EX(return_value); local
14234 zend_generator *generator = (zend_generator *) EX(return_value); local
15194 zend_generator *generator = (zend_generator *) EX(return_value); local
19228 zend_generator *generator = (zend_generator *) EX(return_value); local
21195 zend_generator *generator = (zend_generator *) EX(return_value); local
23533 zend_generator *generator = (zend_generator *) EX(return_value); local
24737 zend_generator *generator = (zend_generator *) EX(return_value); local
26742 zend_generator *generator = (zend_generator *) EX(return_value); local
28190 zend_generator *generator = (zend_generator *) EX(return_value); local
29460 zend_generator *generator = (zend_generator *) EX(return_value); local
30730 zend_generator *generator = (zend_generator *) EX(return_value); local
31246 zend_generator *generator = (zend_generator *) EX(return_value); local
32507 zend_generator *generator = (zend_generator *) EX(return_value); local
36051 zend_generator *generator = (zend_generator *) EX(return_value); local
37956 zend_generator *generator = (zend_generator *) EX(return_value); local
40174 zend_generator *generator = (zend_generator *) EX(return_value); local
41242 zend_generator *generator = (zend_generator *) EX(return_value); local
43127 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