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.h2903 /* The generator object is stored in EX(return_value) */
2904 zend_generator *generator = (zend_generator *) EX(return_value); variable
2906 /* Close the generator to free up resources */
2907 zend_generator_close(generator, 1 TSRMLS_CC);
5683 /* The generator object is stored in EX(return_value) */
5684 zend_generator *generator = (zend_generator *) EX(return_value); variable
5686 if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
5687 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
5691 zval_ptr_dtor(&generator->value);
5694 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);
4778 /* The generator object is stored in EX(return_value) */
4779 zend_generator *generator = (zend_generator *) EX(return_value); local
4781 if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
4782 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
4786 zval_ptr_dtor(&generator->value);
4789 zval_ptr_dtor(&generator
5809 zend_generator *generator = (zend_generator *) EX(return_value); local
7142 zend_generator *generator = (zend_generator *) EX(return_value); local
7885 zend_generator *generator = (zend_generator *) EX(return_value); local
8947 zend_generator *generator = (zend_generator *) EX(return_value); local
11340 zend_generator *generator = (zend_generator *) EX(return_value); local
12327 zend_generator *generator = (zend_generator *) EX(return_value); local
13617 zend_generator *generator = (zend_generator *) EX(return_value); local
14219 zend_generator *generator = (zend_generator *) EX(return_value); local
15184 zend_generator *generator = (zend_generator *) EX(return_value); local
19279 zend_generator *generator = (zend_generator *) EX(return_value); local
21263 zend_generator *generator = (zend_generator *) EX(return_value); local
23614 zend_generator *generator = (zend_generator *) EX(return_value); local
24814 zend_generator *generator = (zend_generator *) EX(return_value); local
26836 zend_generator *generator = (zend_generator *) EX(return_value); local
28302 zend_generator *generator = (zend_generator *) EX(return_value); local
29589 zend_generator *generator = (zend_generator *) EX(return_value); local
30876 zend_generator *generator = (zend_generator *) EX(return_value); local
31392 zend_generator *generator = (zend_generator *) EX(return_value); local
32670 zend_generator *generator = (zend_generator *) EX(return_value); local
36253 zend_generator *generator = (zend_generator *) EX(return_value); local
38175 zend_generator *generator = (zend_generator *) EX(return_value); local
40406 zend_generator *generator = (zend_generator *) EX(return_value); local
41470 zend_generator *generator = (zend_generator *) EX(return_value); local
43372 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 45 milliseconds