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);
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
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.c2377 /* The generator object is stored in EX(return_value) */
2378 zend_generator *generator = (zend_generator *) EX(return_value); local
2379 /* However control may currently be delegated to another generator.
2381 return generator;
H A Dzend_vm_def.h4080 zend_generator *generator = zend_get_running_generator(execute_data); variable
4085 /* Copy return value into generator->retval */
4087 ZVAL_COPY_VALUE(&generator->retval, retval);
4089 if (UNEXPECTED(Z_OPT_COPYABLE(generator->retval))) {
4090 zval_copy_ctor_func(&generator->retval);
4095 ZVAL_COPY(&generator->retval, retval);
4101 ZVAL_COPY_VALUE(&generator->retval, retval);
4108 ZVAL_COPY_VALUE(&generator->retval, retval);
4112 /* Close the generator to free up resources */
4113 zend_generator_close(generator,
7231 zend_generator *generator = zend_get_running_generator(execute_data); variable
7264 zend_generator *generator = zend_get_running_generator(execute_data); variable
7363 zend_generator *generator = zend_get_running_generator(execute_data); variable
7505 zend_generator *generator = zend_get_running_generator(execute_data); variable
7652 zend_generator *generator = zend_get_running_generator(execute_data); variable
[all...]
H A Dzend_vm_execute.h1533 zend_generator *generator = zend_get_running_generator(execute_data); local
1534 zend_generator_close(generator, 1);
1566 zend_generator *generator = zend_get_running_generator(execute_data); local
1567 zend_generator_close(generator, 1);
1644 zend_generator *generator = zend_get_running_generator(execute_data); local
1645 zend_generator_close(generator, 1);
3217 zend_generator *generator = zend_get_running_generator(execute_data); local
3222 /* Copy return value into generator->retval */
3224 ZVAL_COPY_VALUE(&generator->retval, retval);
3226 if (UNEXPECTED(Z_OPT_COPYABLE(generator
4149 zend_generator *generator = zend_get_running_generator(execute_data); local
6569 zend_generator *generator = zend_get_running_generator(execute_data); local
6768 zend_generator *generator = zend_get_running_generator(execute_data); local
7325 zend_generator *generator = zend_get_running_generator(execute_data); local
8219 zend_generator *generator = zend_get_running_generator(execute_data); local
10078 zend_generator *generator = zend_get_running_generator(execute_data); local
11994 zend_generator *generator = zend_get_running_generator(execute_data); local
12618 zend_generator *generator = zend_get_running_generator(execute_data); local
13156 zend_generator *generator = zend_get_running_generator(execute_data); local
13339 zend_generator *generator = zend_get_running_generator(execute_data); local
13522 zend_generator *generator = zend_get_running_generator(execute_data); local
13886 zend_generator *generator = zend_get_running_generator(execute_data); local
14440 zend_generator *generator = zend_get_running_generator(execute_data); local
15241 zend_generator *generator = zend_get_running_generator(execute_data); local
16460 zend_generator *generator = zend_get_running_generator(execute_data); local
18192 zend_generator *generator = zend_get_running_generator(execute_data); local
18410 zend_generator *generator = zend_get_running_generator(execute_data); local
18685 zend_generator *generator = zend_get_running_generator(execute_data); local
19646 zend_generator *generator = zend_get_running_generator(execute_data); local
21345 zend_generator *generator = zend_get_running_generator(execute_data); local
24496 zend_generator *generator = zend_get_running_generator(execute_data); local
24637 zend_generator *generator = zend_get_running_generator(execute_data); local
24778 zend_generator *generator = zend_get_running_generator(execute_data); local
25291 zend_generator *generator = zend_get_running_generator(execute_data); local
26777 zend_generator *generator = zend_get_running_generator(execute_data); local
28822 zend_generator *generator = zend_get_running_generator(execute_data); local
29865 zend_generator *generator = zend_get_running_generator(execute_data); local
33008 zend_generator *generator = zend_get_running_generator(execute_data); local
33322 zend_generator *generator = zend_get_running_generator(execute_data); local
34016 zend_generator *generator = zend_get_running_generator(execute_data); local
35200 zend_generator *generator = zend_get_running_generator(execute_data); local
37910 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 46 milliseconds