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/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...]
/PHP_TRUNK/Zend/
H A Dzend_execute.c2382 /* The generator object is stored in EX(return_value) */
2383 zend_generator *generator = (zend_generator *) EX(return_value); local
2384 /* However control may currently be delegated to another generator.
2386 return generator;
H A Dzend_vm_def.h4029 zend_generator *generator = zend_get_running_generator(execute_data); variable
4034 /* Copy return value into generator->retval */
4036 ZVAL_COPY_VALUE(&generator->retval, retval);
4038 if (UNEXPECTED(Z_OPT_COPYABLE(generator->retval))) {
4039 zval_copy_ctor_func(&generator->retval);
4044 ZVAL_COPY(&generator->retval, retval);
4050 ZVAL_COPY_VALUE(&generator->retval, retval);
4057 ZVAL_COPY_VALUE(&generator->retval, retval);
4061 /* Close the generator to free up resources */
4062 zend_generator_close(generator,
7136 zend_generator *generator = zend_get_running_generator(execute_data); variable
7168 zend_generator *generator = zend_get_running_generator(execute_data); variable
7265 zend_generator *generator = zend_get_running_generator(execute_data); variable
7407 zend_generator *generator = zend_get_running_generator(execute_data); variable
7551 zend_generator *generator = zend_get_running_generator(execute_data); variable
[all...]
H A Dzend_vm_execute.h1543 zend_generator *generator = zend_get_running_generator(execute_data); local
1544 zend_generator_close(generator, 1);
1575 zend_generator *generator = zend_get_running_generator(execute_data); local
1576 zend_generator_close(generator, 1);
1650 zend_generator *generator = zend_get_running_generator(execute_data); local
1651 zend_generator_close(generator, 1);
3173 zend_generator *generator = zend_get_running_generator(execute_data); local
3178 /* Copy return value into generator->retval */
3180 ZVAL_COPY_VALUE(&generator->retval, retval);
3182 if (UNEXPECTED(Z_OPT_COPYABLE(generator
4092 zend_generator *generator = zend_get_running_generator(execute_data); local
6476 zend_generator *generator = zend_get_running_generator(execute_data); local
6674 zend_generator *generator = zend_get_running_generator(execute_data); local
7225 zend_generator *generator = zend_get_running_generator(execute_data); local
8116 zend_generator *generator = zend_get_running_generator(execute_data); local
9950 zend_generator *generator = zend_get_running_generator(execute_data); local
11839 zend_generator *generator = zend_get_running_generator(execute_data); local
12454 zend_generator *generator = zend_get_running_generator(execute_data); local
12992 zend_generator *generator = zend_get_running_generator(execute_data); local
13175 zend_generator *generator = zend_get_running_generator(execute_data); local
13358 zend_generator *generator = zend_get_running_generator(execute_data); local
13724 zend_generator *generator = zend_get_running_generator(execute_data); local
14279 zend_generator *generator = zend_get_running_generator(execute_data); local
15077 zend_generator *generator = zend_get_running_generator(execute_data); local
16284 zend_generator *generator = zend_get_running_generator(execute_data); local
17992 zend_generator *generator = zend_get_running_generator(execute_data); local
18209 zend_generator *generator = zend_get_running_generator(execute_data); local
18481 zend_generator *generator = zend_get_running_generator(execute_data); local
19440 zend_generator *generator = zend_get_running_generator(execute_data); local
21115 zend_generator *generator = zend_get_running_generator(execute_data); local
24222 zend_generator *generator = zend_get_running_generator(execute_data); local
24363 zend_generator *generator = zend_get_running_generator(execute_data); local
24504 zend_generator *generator = zend_get_running_generator(execute_data); local
25019 zend_generator *generator = zend_get_running_generator(execute_data); local
26486 zend_generator *generator = zend_get_running_generator(execute_data); local
28496 zend_generator *generator = zend_get_running_generator(execute_data); local
29490 zend_generator *generator = zend_get_running_generator(execute_data); local
32573 zend_generator *generator = zend_get_running_generator(execute_data); local
32885 zend_generator *generator = zend_get_running_generator(execute_data); local
33568 zend_generator *generator = zend_get_running_generator(execute_data); local
34742 zend_generator *generator = zend_get_running_generator(execute_data); local
37401 zend_generator *generator = zend_get_running_generator(execute_data); local
[all...]
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_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);

Completed in 186 milliseconds