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.h2906 /* The generator object is stored in EX(return_value) */
2907 zend_generator *generator = (zend_generator *) EX(return_value); variable
2909 /* Close the generator to free up resources */
2910 zend_generator_close(generator, 1 TSRMLS_CC);
5688 /* The generator object is stored in EX(return_value) */
5689 zend_generator *generator = (zend_generator *) EX(return_value); variable
5691 if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
5692 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
5696 zval_ptr_dtor(&generator->value);
5699 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);
4877 /* The generator object is stored in EX(return_value) */
4878 zend_generator *generator = (zend_generator *) EX(return_value); local
4880 if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
4881 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
4885 zval_ptr_dtor(&generator->value);
4888 zval_ptr_dtor(&generator
5967 zend_generator *generator = (zend_generator *) EX(return_value); local
7350 zend_generator *generator = (zend_generator *) EX(return_value); local
8094 zend_generator *generator = (zend_generator *) EX(return_value); local
9213 zend_generator *generator = (zend_generator *) EX(return_value); local
11717 zend_generator *generator = (zend_generator *) EX(return_value); local
12779 zend_generator *generator = (zend_generator *) EX(return_value); local
14175 zend_generator *generator = (zend_generator *) EX(return_value); local
14771 zend_generator *generator = (zend_generator *) EX(return_value); local
15811 zend_generator *generator = (zend_generator *) EX(return_value); local
20000 zend_generator *generator = (zend_generator *) EX(return_value); local
22026 zend_generator *generator = (zend_generator *) EX(return_value); local
24452 zend_generator *generator = (zend_generator *) EX(return_value); local
25630 zend_generator *generator = (zend_generator *) EX(return_value); local
27694 zend_generator *generator = (zend_generator *) EX(return_value); local
29191 zend_generator *generator = (zend_generator *) EX(return_value); local
30510 zend_generator *generator = (zend_generator *) EX(return_value); local
31829 zend_generator *generator = (zend_generator *) EX(return_value); local
32321 zend_generator *generator = (zend_generator *) EX(return_value); local
33629 zend_generator *generator = (zend_generator *) EX(return_value); local
37242 zend_generator *generator = (zend_generator *) EX(return_value); local
39196 zend_generator *generator = (zend_generator *) EX(return_value); local
41492 zend_generator *generator = (zend_generator *) EX(return_value); local
42525 zend_generator *generator = (zend_generator *) EX(return_value); local
44460 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 39 milliseconds