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;
39 if (generator->send_target) {
40 if (Z_REFCOUNTED_P(generator->send_target)) Z_DELREF_P(generator->send_target);
41 generator->send_target = NULL;
87 ZEND_API void zend_generator_close(zend_generator *generator, zend_bool finished_execution) /* {{{ */ argument
89 if (Z_TYPE(generator->value) != IS_UNDEF) {
90 zval_ptr_dtor(&generator->value);
91 ZVAL_UNDEF(&generator
145 zend_generator *generator = (zend_generator*) object; local
192 zend_generator *generator = (zend_generator*) object; local
223 zend_generator *generator; local
249 zend_generator *generator; local
297 zend_generator *generator = (zend_generator *) Z_OBJ(ptr->This); local
314 zend_generator_throw_exception(zend_generator *generator, zval *exception) argument
404 zend_generator_add_child(zend_generator *generator, zend_generator *child) argument
494 zend_generator_get_current(zend_generator *generator) argument
570 zend_generator_get_next_delegated_value(zend_generator *generator) argument
648 zend_generator *generator; local
747 zend_generator_ensure_initialized(zend_generator *generator) argument
758 zend_generator_rewind(zend_generator *generator) argument
772 zend_generator *generator; local
788 zend_generator *generator; local
808 zend_generator *generator, *root; local
829 zend_generator *generator, *root; local
850 zend_generator *generator; local
869 zend_generator *generator, *root; local
905 zend_generator *generator; local
940 zend_generator *generator; local
984 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
993 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
1005 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data), *root; local
1017 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data), *root; local
1033 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
1043 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data); local
1061 zend_generator *generator = (zend_generator*)Z_OBJ_P(object); local
[all...]
H A Dzend_execute.c2161 /* The generator object is stored in EX(return_value) */
2162 zend_generator *generator = (zend_generator *) EX(return_value); local
2163 /* However control may currently be delegated to another generator.
2165 return generator;
H A Dzend_vm_def.h4036 zend_generator *generator = zend_get_running_generator(execute_data); variable
4041 /* Copy return value into generator->retval */
4043 ZVAL_COPY_VALUE(&generator->retval, retval);
4045 if (UNEXPECTED(Z_OPT_COPYABLE(generator->retval))) {
4046 zval_copy_ctor_func(&generator->retval);
4051 ZVAL_COPY(&generator->retval, retval);
4057 ZVAL_COPY_VALUE(&generator->retval, retval);
4064 ZVAL_COPY_VALUE(&generator->retval, retval);
4068 /* Close the generator to free up resources */
4069 zend_generator_close(generator,
7284 zend_generator *generator = zend_get_running_generator(execute_data); variable
7317 zend_generator *generator = zend_get_running_generator(execute_data); variable
7416 zend_generator *generator = zend_get_running_generator(execute_data); variable
7554 zend_generator *generator = zend_get_running_generator(execute_data); variable
7701 zend_generator *generator = zend_get_running_generator(execute_data); variable
[all...]
H A Dzend_vm_execute.h1660 zend_generator *generator = zend_get_running_generator(execute_data); local
1661 zend_generator_close(generator, 1);
1693 zend_generator *generator = zend_get_running_generator(execute_data); local
1694 zend_generator_close(generator, 1);
1771 zend_generator *generator = zend_get_running_generator(execute_data); local
1772 zend_generator_close(generator, 1);
3334 zend_generator *generator = zend_get_running_generator(execute_data); local
3339 /* Copy return value into generator->retval */
3341 ZVAL_COPY_VALUE(&generator->retval, retval);
3343 if (UNEXPECTED(Z_OPT_COPYABLE(generator
4258 zend_generator *generator = zend_get_running_generator(execute_data); local
6546 zend_generator *generator = zend_get_running_generator(execute_data); local
6738 zend_generator *generator = zend_get_running_generator(execute_data); local
7283 zend_generator *generator = zend_get_running_generator(execute_data); local
8168 zend_generator *generator = zend_get_running_generator(execute_data); local
9916 zend_generator *generator = zend_get_running_generator(execute_data); local
11723 zend_generator *generator = zend_get_running_generator(execute_data); local
12345 zend_generator *generator = zend_get_running_generator(execute_data); local
12863 zend_generator *generator = zend_get_running_generator(execute_data); local
13040 zend_generator *generator = zend_get_running_generator(execute_data); local
13217 zend_generator *generator = zend_get_running_generator(execute_data); local
13581 zend_generator *generator = zend_get_running_generator(execute_data); local
14111 zend_generator *generator = zend_get_running_generator(execute_data); local
14895 zend_generator *generator = zend_get_running_generator(execute_data); local
16113 zend_generator *generator = zend_get_running_generator(execute_data); local
17913 zend_generator *generator = zend_get_running_generator(execute_data); local
18125 zend_generator *generator = zend_get_running_generator(execute_data); local
18396 zend_generator *generator = zend_get_running_generator(execute_data); local
19356 zend_generator *generator = zend_get_running_generator(execute_data); local
21133 zend_generator *generator = zend_get_running_generator(execute_data); local
24394 zend_generator *generator = zend_get_running_generator(execute_data); local
24531 zend_generator *generator = zend_get_running_generator(execute_data); local
24668 zend_generator *generator = zend_get_running_generator(execute_data); local
25180 zend_generator *generator = zend_get_running_generator(execute_data); local
26710 zend_generator *generator = zend_get_running_generator(execute_data); local
28802 zend_generator *generator = zend_get_running_generator(execute_data); local
29838 zend_generator *generator = zend_get_running_generator(execute_data); local
32942 zend_generator *generator = zend_get_running_generator(execute_data); local
33249 zend_generator *generator = zend_get_running_generator(execute_data); local
33930 zend_generator *generator = zend_get_running_generator(execute_data); local
35110 zend_generator *generator = zend_get_running_generator(execute_data); local
37795 zend_generator *generator = zend_get_running_generator(execute_data); local
[all...]
/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c2120 zval *generator, *object; local
2130 if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "O", &generator, zend_ce_generator) == FAILURE) {
2134 ex = ((zend_generator *) Z_OBJ_P(generator))->execute_data;
2141 ZVAL_COPY(&intern->obj, generator);
2156 zend_generator *generator = (zend_generator *) Z_OBJ(Z_REFLECTION_P(getThis())->obj); local
2159 zend_execute_data *ex = generator->execute_data;
2168 root_generator = zend_generator_get_current(generator);
2170 cur_prev = generator->execute_data->prev_execute_data;
2171 if (generator == root_generator) {
2172 generator
2191 zend_generator *generator = (zend_generator *) Z_OBJ(Z_REFLECTION_P(getThis())->obj); local
2207 zend_generator *generator = (zend_generator *) Z_OBJ(Z_REFLECTION_P(getThis())->obj); local
2223 zend_generator *generator = (zend_generator *) Z_OBJ(Z_REFLECTION_P(getThis())->obj); local
2247 zend_generator *generator = (zend_generator *) Z_OBJ(Z_REFLECTION_P(getThis())->obj); local
2267 zend_generator *generator = (zend_generator *) Z_OBJ(Z_REFLECTION_P(getThis())->obj); local
[all...]

Completed in 49 milliseconds