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
365 zend_generator *generator; local
381 zend_generator *generator; local
399 zend_generator *generator; local
419 zend_generator *generator; local
439 zend_generator *generator; local
458 zend_generator *generator; local
492 zend_generator *generator; local
546 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
555 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
565 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
575 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
589 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
599 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
617 zend_generator *generator = (zend_generator*)Z_OBJ_P(object); local
[all...]
H A Dzend_vm_def.h2861 /* The generator object is stored in EX(return_value) */
2862 zend_generator *generator = (zend_generator *) EX(return_value); variable
2864 /* Close the generator to free up resources */
2865 zend_generator_close(generator, 1 TSRMLS_CC);
5648 /* The generator object is stored in EX(return_value) */
5649 zend_generator *generator = (zend_generator *) EX(return_value); variable
5651 if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
5652 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
5656 zval_ptr_dtor(&generator->value);
5659 zval_ptr_dtor(&generator
[all...]
H A Dzend_vm_execute.h676 /* The generator object is stored in EX(return_value) */
677 zend_generator *generator = (zend_generator *) EX(return_value); local
679 /* Close the generator to free up resources */
680 zend_generator_close(generator, 1 TSRMLS_CC);
4829 /* The generator object is stored in EX(return_value) */
4830 zend_generator *generator = (zend_generator *) EX(return_value); local
4832 if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
4833 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
4837 zval_ptr_dtor(&generator->value);
4840 zval_ptr_dtor(&generator
5875 zend_generator *generator = (zend_generator *) EX(return_value); local
7213 zend_generator *generator = (zend_generator *) EX(return_value); local
7956 zend_generator *generator = (zend_generator *) EX(return_value); local
9033 zend_generator *generator = (zend_generator *) EX(return_value); local
11491 zend_generator *generator = (zend_generator *) EX(return_value); local
12509 zend_generator *generator = (zend_generator *) EX(return_value); local
13860 zend_generator *generator = (zend_generator *) EX(return_value); local
14455 zend_generator *generator = (zend_generator *) EX(return_value); local
15451 zend_generator *generator = (zend_generator *) EX(return_value); local
19598 zend_generator *generator = (zend_generator *) EX(return_value); local
21580 zend_generator *generator = (zend_generator *) EX(return_value); local
23961 zend_generator *generator = (zend_generator *) EX(return_value); local
25138 zend_generator *generator = (zend_generator *) EX(return_value); local
27158 zend_generator *generator = (zend_generator *) EX(return_value); local
28609 zend_generator *generator = (zend_generator *) EX(return_value); local
29884 zend_generator *generator = (zend_generator *) EX(return_value); local
31159 zend_generator *generator = (zend_generator *) EX(return_value); local
31651 zend_generator *generator = (zend_generator *) EX(return_value); local
32915 zend_generator *generator = (zend_generator *) EX(return_value); local
36488 zend_generator *generator = (zend_generator *) EX(return_value); local
38399 zend_generator *generator = (zend_generator *) EX(return_value); local
40650 zend_generator *generator = (zend_generator *) EX(return_value); local
41682 zend_generator *generator = (zend_generator *) EX(return_value); local
43573 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