History log of /PHP-7.4/Zend/zend_generators.c (Results 51 – 75 of 241)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: php-5.6.29, php-7.0.14
# fcaccbaa 01-Dec-2016 Bob Weinand

Fix valgrind issue when throwing due to yield from aborted generator


Revision tags: php-7.1.0, php-5.6.29RC1, php-7.0.14RC1, php-7.1.0RC6, php-5.6.28, php-7.0.13, php-5.6.28RC1, php-7.1.0RC5, php-7.0.13RC1, php-7.1.0RC4, php-5.6.27, php-7.0.12, php-7.1.0RC3, php-5.6.27RC1
# 22a3d55e 28-Sep-2016 Anatol Belski

fix exports which are now referenced by phpdbg

(cherry picked from commit cd0f1c8a5ed6d4e677dbf891fc69326e5b05cccc)


# cd0f1c8a 28-Sep-2016 Anatol Belski

fix exports which are now referenced by phpdbg


# e5d75d72 28-Sep-2016 Bob Weinand

Add phpdbg generator command


Revision tags: php-7.0.12RC1, php-5.6.26, php-7.1.0RC2, php-7.0.11
# d690014b 11-Sep-2016 Andrea Faulds

Remove zpp fallback code (always use Fast ZPP)

Squashed commit of the following:

commit 3e27fbb3d22b42d181e15c345f1c59a007b6b58c
Author: Andrea Faulds <ajf@ajf.me>
Date: S

Remove zpp fallback code (always use Fast ZPP)

Squashed commit of the following:

commit 3e27fbb3d22b42d181e15c345f1c59a007b6b58c
Author: Andrea Faulds <ajf@ajf.me>
Date: Sun Sep 11 19:14:37 2016 +0100

Keep dummy FAST_ZPP macro for compatibility

commit 8a7cfd00deaa4a3c5026c97580c49c886c72a5b4
Author: Andrea Faulds <ajf@ajf.me>
Date: Mon Sep 5 22:36:03 2016 +0100

Remove FAST_ZPP macro and plain zpp fallback code

show more ...


Revision tags: php-5.6.26RC1, php-7.1.0RC1, php-7.0.11RC1, php-7.1.0beta3, php-5.6.25, php-7.0.10
# 8a1fbdda 17-Aug-2016 Kalle Sommer Nielsen

Fixed C89 build


Revision tags: php-7.1.0beta2, php-5.6.25RC1, php-7.0.10RC1
# 6046acf9 23-Jul-2016 Bob Weinand

Fix ClosedGeneratorException possibly thrown into wrong scope


Revision tags: php-7.1.0beta1, php-5.6.24, php-7.0.9, php-5.5.38, php-5.6.24RC1, php-7.1.0alpha3, php-7.0.9RC1, php-7.1.0alpha2, php-7.0.8, php-5.6.23, php-5.5.37, php-5.6.23RC1, php-7.0.8RC1, php-7.1.0alpha1, php-5.6.22, php-5.5.36, php-7.0.7
# ccf18da4 12-May-2016 Dmitry Stogov

Eliminated checks for (func->op_array.fn_flags & ZEND_ACC_GENERATOR) in fast path of DO_FCALL* handlers.
This slightly improves calls to regular function and method calls in cost of a bit slower

Eliminated checks for (func->op_array.fn_flags & ZEND_ACC_GENERATOR) in fast path of DO_FCALL* handlers.
This slightly improves calls to regular function and method calls in cost of a bit slower generator initialization.
Separate call frame for generators, allocated on heap, now created by ZEND_GENERATOR_CREATE instruction.

show more ...


# 8a7a913a 11-May-2016 Dmitry Stogov

Use main VM stack for generators. Only single call frame for generator itself is allocated on heap, call frames for nested functions are allocated on main VM stack. In case "yield" used in context of

Use main VM stack for generators. Only single call frame for generator itself is allocated on heap, call frames for nested functions are allocated on main VM stack. In case "yield" used in context of another function call, call stack has to be frozen and then restored.

show more ...


Revision tags: php-5.6.22RC1, php-7.0.7RC1
# 2578d080 29-Apr-2016 Dmitry Stogov

Fixed compilation warnings


Revision tags: php-7.0.6
# 747a482b 28-Apr-2016 Dmitry Stogov

Don't initialize EX(call)->symbol_table on each function call.
Keep it uninitialized, and check ZEND_CALL_HAS_SYMBOL_TABLE flag when necessary.


# 6499162f 28-Apr-2016 Dmitry Stogov

- get rid of EG(scope). zend_get_executed_scope() should be used instead.
- ichanged zval_update_constant_ex(). Use IS_TYPE_IMMUTABLE flag on shared constants and AST, instead of "inline_change"

- get rid of EG(scope). zend_get_executed_scope() should be used instead.
- ichanged zval_update_constant_ex(). Use IS_TYPE_IMMUTABLE flag on shared constants and AST, instead of "inline_change" parameter.

show more ...


Revision tags: php-5.6.21, php-5.5.35
# 50853524 18-Apr-2016 Bob Weinand

Fix generator being a cycle to itself


Revision tags: php-5.6.21RC1, php-7.0.6RC1
# aad4eceb 07-Apr-2016 Nikita Popov

Fixed bug #71980


# e7730fec 04-Apr-2016 Dmitry Stogov

Fised possible use-after-free


# 7abfaac9 01-Apr-2016 Dmitry Stogov

Merge zend_execute_data->called_scope into zend_execute_data->This.
"called_scope" made sense only for static method calls, for dynamic calls it was always equal to the class of $this.
Now EG

Merge zend_execute_data->called_scope into zend_execute_data->This.
"called_scope" made sense only for static method calls, for dynamic calls it was always equal to the class of $this.
Now EG(This) may store IS_OBJECT + $this or IS_UNUSED + "called_scope" (of course, "called_scope" may be NULL).
Some code might need to be adopted to support this change.
Checks (Z_OBJ(EX(This))) might need to be converted into (Z_TYPE(EX(This)) == IS_OBJECT).

show more ...


# 86a1aeed 31-Mar-2016 Dmitry Stogov

Flags ZEND_CALL_RELEASE_THIS and ZEND_CALL_CLOSURE should never be set together.
Closures keep responsibility for releasing $this theirselves.


Revision tags: php-5.6.20, php-5.5.34, php-7.0.5
# 9583cb84 17-Mar-2016 Kalle Sommer Nielsen

Fix build


Revision tags: php-5.6.20RC1, php-7.0.5RC1, php-5.6.19, php-5.5.33, php-7.0.4, php-5.6.19RC1, php-7.0.4RC1
# 23b770f3 15-Feb-2016 Bob Weinand

Fixed bug #71601 (finally block not executed after yield from)


# c0c73f70 12-Feb-2016 Nikita Popov

Fix bug #69989

This should cover all the basic cycles. Anything further would
require scanning the call stack and live temporaries.


# f75be353 11-Feb-2016 Nikita Popov

Support partial GC for unfinished generators

This doesn't cover everything yet, but should be a good start for
cycled in unfinished generators.


# 1322672c 11-Feb-2016 Nikita Popov

Fix dangling send target when using yield from

Also drop some unnecessary TRY_DELREFs -- leftovers from the days
when null was refcounted.


# aa3f44a3 10-Feb-2016 Nikita Popov

Crude generator GC for value/key/retval

These values remain live after the generator has been closed, so
they are particularly susceptible to leaking cycles.


Revision tags: php-5.6.18, php-7.0.3, php-5.5.32, php-5.6.18RC1, php-7.0.3RC1
# 83cb7510 07-Jan-2016 Bob Weinand

Fix accidental zval_dtor() usage


# 033d6087 07-Jan-2016 Bob Weinand

Fixed bug #71297 (Memory leak with yield from)


12345678910