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);
59 ZEND_API void zend_generator_resume(zend_generator *generator);
H A Dzend_generators.c32 static void zend_generator_cleanup_unfinished_execution(zend_generator *generator) /* {{{ */ argument
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;
85 ZEND_API void zend_generator_close(zend_generator *generator, zend_bool finished_execution) /* {{{ */ argument
87 if (Z_TYPE(generator->value) != IS_UNDEF) {
88 zval_ptr_dtor(&generator->value);
89 ZVAL_UNDEF(&generator
140 zend_generator *generator = (zend_generator*) object; local
185 zend_generator *generator = (zend_generator*) object; local
199 zend_generator *generator; local
228 zend_generator *generator; local
295 zend_generator_resume(zend_generator *generator) argument
356 zend_generator_ensure_initialized(zend_generator *generator) argument
365 zend_generator_rewind(zend_generator *generator) argument
379 zend_generator *generator; local
395 zend_generator *generator; local
413 zend_generator *generator; local
433 zend_generator *generator; local
453 zend_generator *generator; local
472 zend_generator *generator; local
506 zend_generator *generator; local
560 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
569 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
579 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
589 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
603 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
613 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
631 zend_generator *generator = (zend_generator*)Z_OBJ_P(object); local
[all...]
H A Dzend_vm_def.h3318 /* The generator object is stored in EX(return_value) */
3319 zend_generator *generator = (zend_generator *) EX(return_value); variable
3321 /* Close the generator to free up resources */
3322 zend_generator_close(generator, 1);
6458 /* The generator object is stored in EX(return_value) */
6459 zend_generator *generator = (zend_generator *) EX(return_value); variable
6461 if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
6462 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
6466 zval_ptr_dtor(&generator->value);
6469 zval_ptr_dtor(&generator
[all...]
H A Dzend_vm_execute.h857 /* The generator object is stored in EX(return_value) */
858 zend_generator *generator = (zend_generator *) EX(return_value); local
860 /* Close the generator to free up resources */
861 zend_generator_close(generator, 1);
5227 /* The generator object is stored in EX(return_value) */
5228 zend_generator *generator = (zend_generator *) EX(return_value); local
5230 if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
5231 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
5235 zval_ptr_dtor(&generator->value);
5238 zval_ptr_dtor(&generator
5405 zend_generator *generator = (zend_generator *) EX(return_value); local
5913 zend_generator *generator = (zend_generator *) EX(return_value); local
6712 zend_generator *generator = (zend_generator *) EX(return_value); local
7880 zend_generator *generator = (zend_generator *) EX(return_value); local
10013 zend_generator *generator = (zend_generator *) EX(return_value); local
10175 zend_generator *generator = (zend_generator *) EX(return_value); local
10337 zend_generator *generator = (zend_generator *) EX(return_value); local
10641 zend_generator *generator = (zend_generator *) EX(return_value); local
11095 zend_generator *generator = (zend_generator *) EX(return_value); local
14409 zend_generator *generator = (zend_generator *) EX(return_value); local
14609 zend_generator *generator = (zend_generator *) EX(return_value); local
14860 zend_generator *generator = (zend_generator *) EX(return_value); local
15729 zend_generator *generator = (zend_generator *) EX(return_value); local
17303 zend_generator *generator = (zend_generator *) EX(return_value); local
20236 zend_generator *generator = (zend_generator *) EX(return_value); local
20367 zend_generator *generator = (zend_generator *) EX(return_value); local
20498 zend_generator *generator = (zend_generator *) EX(return_value); local
20960 zend_generator *generator = (zend_generator *) EX(return_value); local
22358 zend_generator *generator = (zend_generator *) EX(return_value); local
27610 zend_generator *generator = (zend_generator *) EX(return_value); local
27880 zend_generator *generator = (zend_generator *) EX(return_value); local
28518 zend_generator *generator = (zend_generator *) EX(return_value); local
29590 zend_generator *generator = (zend_generator *) EX(return_value); local
31690 zend_generator *generator = (zend_generator *) EX(return_value); local
[all...]
/PHP_TRUNK/ext/interbase/
H A Dinterbase.c108 ZEND_ARG_INFO(0, generator)
1417 /* {{{ proto int ibase_gen_id(string generator [, int increment [, resource link_identifier ]])
1418 Increments the named generator and returns its new value */
1422 char query[128], *generator; local
1432 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "s|lr", &generator, &gen_len,
1438 php_error_docref(NULL, E_WARNING, "Invalid generator name");
1444 snprintf(query, sizeof(query), "SELECT GEN_ID(%s,%ld) FROM rdb$database", generator, inc);
1463 /* don't return the generator value as a string unless it doesn't fit in a long */

Completed in 34 milliseconds