Searched refs:generator (Results 1 - 5 of 5) sorted by relevance

/PHP_TRUNK/Zend/
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 Z_DELREF_PP(generator->send_target);
39 generator->send_target = NULL;
80 void **ptr = generator->stack->top - 1;
99 ZEND_API void zend_generator_close(zend_generator *generator, zend_bool finished_execution TSRMLS_DC) /* {{{ */ argument
101 if (generator->value) {
102 zval_ptr_dtor(&generator->value);
103 generator
167 zend_generator_dtor_storage(zend_generator *generator, zend_object_handle handle TSRMLS_DC) argument
217 zend_generator *generator; local
254 zend_generator *generator; local
424 zend_generator *generator; local
440 zend_generator *generator; local
458 zend_generator *generator; local
478 zend_generator *generator; local
498 zend_generator *generator; local
517 zend_generator *generator; local
552 zend_generator *generator; local
615 zend_generator *generator = (zend_generator *) iterator->data; local
625 zend_generator *generator = (zend_generator *) iterator->data; local
639 zend_generator *generator = (zend_generator *) iterator->data; local
653 zend_generator *generator = (zend_generator *) iterator->data; local
663 zend_generator *generator = (zend_generator *) iterator->data; local
681 zend_generator *generator; local
[all...]
H A Dzend_generators.h31 /* The generator object zval has to be stored, because the iterator is
44 /* The separate stack used by generator */
66 ZEND_API void zend_generator_close(zend_generator *generator, zend_bool finished_execution TSRMLS_DC);
67 ZEND_API void zend_generator_resume(zend_generator *generator TSRMLS_DC);
H A Dzend_vm_def.h2959 /* The generator object is stored in return_value_ptr_ptr */
2960 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); variable
2962 /* Close the generator to free up resources */
2963 zend_generator_close(generator, 1 TSRMLS_CC);
5442 /* The generator object is stored in return_value_ptr_ptr */
5443 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); variable
5445 if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
5446 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
5450 if (generator->value) {
5451 zval_ptr_dtor(&generator
[all...]
H A Dzend_vm_execute.h698 /* The generator object is stored in return_value_ptr_ptr */
699 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
701 /* Close the generator to free up resources */
702 zend_generator_close(generator, 1 TSRMLS_CC);
4335 /* The generator object is stored in return_value_ptr_ptr */
4336 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
4338 if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
4339 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
4343 if (generator->value) {
4344 zval_ptr_dtor(&generator
5038 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
6065 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
6803 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
7549 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
9612 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
10316 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
11345 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
11940 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
12626 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
16532 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
18622 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
21092 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
22260 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
24384 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
25896 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
27210 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
28524 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
28954 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
30265 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
33762 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
35713 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
38043 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
39062 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
41046 zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr); local
[all...]
/PHP_TRUNK/ext/interbase/
H A Dinterbase.c108 ZEND_ARG_INFO(0, generator)
1404 /* {{{ proto int ibase_gen_id(string generator [, int increment [, resource link_identifier ]])
1405 Increments the named generator and returns its new value */
1409 char query[128], *generator; local
1419 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lr", &generator, &gen_len,
1425 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid generator name");
1431 snprintf(query, sizeof(query), "SELECT GEN_ID(%s,%ld) FROM rdb$database", generator, inc);
1450 /* don't return the generator value as a string unless it doesn't fit in a long */

Completed in 36 milliseconds