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.h2862 /* The generator object is stored in EX(return_value) */
2863 zend_generator *generator = (zend_generator *) EX(return_value); variable
2865 /* Close the generator to free up resources */
2866 zend_generator_close(generator, 1 TSRMLS_CC);
5651 /* The generator object is stored in EX(return_value) */
5652 zend_generator *generator = (zend_generator *) EX(return_value); variable
5654 if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
5655 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
5659 zval_ptr_dtor(&generator->value);
5662 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);
4832 /* The generator object is stored in EX(return_value) */
4833 zend_generator *generator = (zend_generator *) EX(return_value); local
4835 if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
4836 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
4840 zval_ptr_dtor(&generator->value);
4843 zval_ptr_dtor(&generator
5878 zend_generator *generator = (zend_generator *) EX(return_value); local
7216 zend_generator *generator = (zend_generator *) EX(return_value); local
7959 zend_generator *generator = (zend_generator *) EX(return_value); local
9036 zend_generator *generator = (zend_generator *) EX(return_value); local
11495 zend_generator *generator = (zend_generator *) EX(return_value); local
12513 zend_generator *generator = (zend_generator *) EX(return_value); local
13864 zend_generator *generator = (zend_generator *) EX(return_value); local
14459 zend_generator *generator = (zend_generator *) EX(return_value); local
15455 zend_generator *generator = (zend_generator *) EX(return_value); local
19605 zend_generator *generator = (zend_generator *) EX(return_value); local
21587 zend_generator *generator = (zend_generator *) EX(return_value); local
23968 zend_generator *generator = (zend_generator *) EX(return_value); local
25145 zend_generator *generator = (zend_generator *) EX(return_value); local
27165 zend_generator *generator = (zend_generator *) EX(return_value); local
28618 zend_generator *generator = (zend_generator *) EX(return_value); local
29893 zend_generator *generator = (zend_generator *) EX(return_value); local
31168 zend_generator *generator = (zend_generator *) EX(return_value); local
31660 zend_generator *generator = (zend_generator *) EX(return_value); local
32924 zend_generator *generator = (zend_generator *) EX(return_value); local
36498 zend_generator *generator = (zend_generator *) EX(return_value); local
38409 zend_generator *generator = (zend_generator *) EX(return_value); local
40660 zend_generator *generator = (zend_generator *) EX(return_value); local
41692 zend_generator *generator = (zend_generator *) EX(return_value); local
43583 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 37 milliseconds