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

/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 */
/PHP_TRUNK/Zend/
H A Dzend_generators.h36 * That way, when we advance any generator, we just need to look up a leaf node (which all have a reference to a root node). Then we can see at the root node whether current Generator is finished. If it isn't, all is fine and we can just continue. If the Generator finished, there will be two cases. Either it is a simple node with just one child, then go down to child node. Or it has multiple children and we now will remove the current leaf node from the list of nodes (unnecessary, is microoptimization) and go down to the child node whose reference was paired with current leaf node. Child node is then removed its parent reference and becomes new top node. Or the current node references the Generator we're currently executing, then we can continue from the YIELD_FROM opcode. When a node referenced as root node in a leaf node has a parent, then we go the way up until we find a root node without parent.
65 /* The separate stack used by generator */
79 /* Values specified by "yield from" to yield from this generator.
80 * This is only used for arrays or non-generator Traversables.
103 ZEND_API void zend_generator_close(zend_generator *generator, zend_bool finished_execution);
104 ZEND_API void zend_generator_resume(zend_generator *generator);
106 void zend_generator_yield_from(zend_generator *generator, zend_generator *from);
107 ZEND_API zend_generator *zend_generator_get_current(zend_generator *generator);
H A Dzend_generators.c34 static void zend_generator_cleanup_unfinished_execution(zend_generator *generator) /* {{{ */ argument
36 zend_execute_data *execute_data = generator->execute_data;
38 if (generator->send_target) {
39 Z_TRY_DELREF_P(generator->send_target);
40 generator->send_target = NULL;
51 EG(vm_stack_top) = generator->stack->top;
52 EG(vm_stack_end) = generator->stack->end;
53 EG(vm_stack) = generator->stack;
57 generator->stack = EG(vm_stack);
58 generator
66 zend_generator_close(zend_generator *generator, zend_bool finished_execution) argument
124 zend_generator *generator = (zend_generator*) object; local
173 zend_generator *generator = (zend_generator*) object; local
204 zend_generator *generator; local
230 zend_generator *generator; local
278 zend_generator *generator = (zend_generator *) Z_OBJ(ptr->This); local
295 zend_generator_throw_exception(zend_generator *generator, zval *exception) argument
385 zend_generator_add_child(zend_generator *generator, zend_generator *child) argument
466 zend_generator_yield_from(zend_generator *generator, zend_generator *from) argument
475 zend_generator_get_current(zend_generator *generator) argument
551 zend_generator_get_next_delegated_value(zend_generator *generator) argument
629 zend_generator *generator; local
728 zend_generator_ensure_initialized(zend_generator *generator) argument
739 zend_generator_rewind(zend_generator *generator) argument
753 zend_generator *generator; local
769 zend_generator *generator; local
789 zend_generator *generator, *root; local
813 zend_generator *generator, *root; local
837 zend_generator *generator; local
856 zend_generator *generator, *root; local
895 zend_generator *generator; local
933 zend_generator *generator; local
977 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
986 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
998 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data), *root; local
1010 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data), *root; local
1029 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
1039 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
1057 zend_generator *generator = (zend_generator*)Z_OBJ_P(object); local
[all...]
H A Dzend_execute.c2363 /* The generator object is stored in EX(return_value) */
2364 zend_generator *generator = (zend_generator *) EX(return_value); local
2365 /* However control may currently be delegated to another generator.
2367 return generator;
H A Dzend_vm_def.h4021 zend_generator *generator = zend_get_running_generator(execute_data); variable
4026 /* Copy return value into generator->retval */
4028 ZVAL_COPY_VALUE(&generator->retval, retval);
4030 if (UNEXPECTED(Z_OPT_COPYABLE(generator->retval))) {
4031 zval_copy_ctor_func(&generator->retval);
4036 ZVAL_COPY(&generator->retval, retval);
4042 ZVAL_COPY_VALUE(&generator->retval, retval);
4049 ZVAL_COPY_VALUE(&generator->retval, retval);
4053 /* Close the generator to free up resources */
4054 zend_generator_close(generator,
7121 zend_generator *generator = zend_get_running_generator(execute_data); variable
7153 zend_generator *generator = zend_get_running_generator(execute_data); variable
7250 zend_generator *generator = zend_get_running_generator(execute_data); variable
7392 zend_generator *generator = zend_get_running_generator(execute_data); variable
7536 zend_generator *generator = zend_get_running_generator(execute_data); variable
[all...]
H A Dzend_vm_execute.h1542 zend_generator *generator = zend_get_running_generator(execute_data); local
1543 zend_generator_close(generator, 1);
1574 zend_generator *generator = zend_get_running_generator(execute_data); local
1575 zend_generator_close(generator, 1);
1649 zend_generator *generator = zend_get_running_generator(execute_data); local
1650 zend_generator_close(generator, 1);
3183 zend_generator *generator = zend_get_running_generator(execute_data); local
3188 /* Copy return value into generator->retval */
3190 ZVAL_COPY_VALUE(&generator->retval, retval);
3192 if (UNEXPECTED(Z_OPT_COPYABLE(generator
4104 zend_generator *generator = zend_get_running_generator(execute_data); local
6478 zend_generator *generator = zend_get_running_generator(execute_data); local
6676 zend_generator *generator = zend_get_running_generator(execute_data); local
7218 zend_generator *generator = zend_get_running_generator(execute_data); local
8099 zend_generator *generator = zend_get_running_generator(execute_data); local
9931 zend_generator *generator = zend_get_running_generator(execute_data); local
11819 zend_generator *generator = zend_get_running_generator(execute_data); local
12438 zend_generator *generator = zend_get_running_generator(execute_data); local
12976 zend_generator *generator = zend_get_running_generator(execute_data); local
13159 zend_generator *generator = zend_get_running_generator(execute_data); local
13342 zend_generator *generator = zend_get_running_generator(execute_data); local
13708 zend_generator *generator = zend_get_running_generator(execute_data); local
14263 zend_generator *generator = zend_get_running_generator(execute_data); local
15061 zend_generator *generator = zend_get_running_generator(execute_data); local
16270 zend_generator *generator = zend_get_running_generator(execute_data); local
17977 zend_generator *generator = zend_get_running_generator(execute_data); local
18194 zend_generator *generator = zend_get_running_generator(execute_data); local
18466 zend_generator *generator = zend_get_running_generator(execute_data); local
19424 zend_generator *generator = zend_get_running_generator(execute_data); local
21098 zend_generator *generator = zend_get_running_generator(execute_data); local
24204 zend_generator *generator = zend_get_running_generator(execute_data); local
24345 zend_generator *generator = zend_get_running_generator(execute_data); local
24486 zend_generator *generator = zend_get_running_generator(execute_data); local
25001 zend_generator *generator = zend_get_running_generator(execute_data); local
26468 zend_generator *generator = zend_get_running_generator(execute_data); local
28478 zend_generator *generator = zend_get_running_generator(execute_data); local
29474 zend_generator *generator = zend_get_running_generator(execute_data); local
32547 zend_generator *generator = zend_get_running_generator(execute_data); local
32869 zend_generator *generator = zend_get_running_generator(execute_data); local
33542 zend_generator *generator = zend_get_running_generator(execute_data); local
34707 zend_generator *generator = zend_get_running_generator(execute_data); local
37366 zend_generator *generator = zend_get_running_generator(execute_data); local
[all...]
/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c2159 zval *generator, *object; local
2169 if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "O", &generator, zend_ce_generator) == FAILURE) {
2173 ex = ((zend_generator *) Z_OBJ_P(generator))->execute_data;
2180 ZVAL_COPY(&intern->obj, generator);
2195 zend_generator *generator = (zend_generator *) Z_OBJ(Z_REFLECTION_P(getThis())->obj); local
2198 zend_execute_data *ex = generator->execute_data;
2207 root_generator = zend_generator_get_current(generator);
2209 cur_prev = generator->execute_data->prev_execute_data;
2210 if (generator == root_generator) {
2211 generator
2230 zend_generator *generator = (zend_generator *) Z_OBJ(Z_REFLECTION_P(getThis())->obj); local
2246 zend_generator *generator = (zend_generator *) Z_OBJ(Z_REFLECTION_P(getThis())->obj); local
2262 zend_generator *generator = (zend_generator *) Z_OBJ(Z_REFLECTION_P(getThis())->obj); local
2286 zend_generator *generator = (zend_generator *) Z_OBJ(Z_REFLECTION_P(getThis())->obj); local
2306 zend_generator *generator = (zend_generator *) Z_OBJ(Z_REFLECTION_P(getThis())->obj); local
[all...]

Completed in 47 milliseconds