History log of /PHP-8.4/Zend/zend_closures.c (Results 151 – 175 of 309)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# bbae7ddf 09-Oct-2015 Nikita Popov

Fixed bug #70681


# 0847681b 09-Oct-2015 Dmitry Stogov

Fixed bug #70630 (Closure::call/bind() crash with ReflectionFunction->getClosure())


# 93748bf9 08-Oct-2015 Dmitry Stogov

Fixed infinity recurion if we create closure on top of other closure.


# 05bd331c 08-Oct-2015 Dmitry Stogov

Fixed use after free


# 91fb3a7b 08-Oct-2015 Dmitry Stogov

Fixed bug #70674 (ReflectionFunction::getClosure() leaks memory when used for internal functions)


# e0b3b3c7 06-Oct-2015 Dmitry Stogov

Revert "Fixed bug #70630 (Closure::call/bind() crash with ReflectionFunction->getClosure())"

This reverts commit 517b5536259ecf7697f353f4bfbafde857fc1f81.


# e193d35c 06-Oct-2015 Dmitry Stogov

Revert "Improve 517b55362 (scope rebinding on method Closures)"

This reverts commit 881c50252066132f83e190325e344f532be19033.


# 524d00e0 06-Oct-2015 Dmitry Stogov

Revert "Allow random $this on non-internal Closures again"

This reverts commit 35d0405c4790f0ce668c9e1b8b05197e55d29a05.


# 35d0405c 05-Oct-2015 Bob Weinand

Allow random $this on non-internal Closures again
As it turns out, there is actually no reason to prevent this, it even was a bigger BC break than expected...

Also fixes a memory leak (t

Allow random $this on non-internal Closures again
As it turns out, there is actually no reason to prevent this, it even was a bigger BC break than expected...

Also fixes a memory leak (the Closure leaks) when calling internal functions via Closure by moving it out of leave helper onto caller side for TOP_CODE:

$z = new SplStack; $z->push(20);
$x = (new ReflectionMethod("SplStack", "pop"))->getClosure($z);
var_dump($x());

show more ...


# 881c5025 04-Oct-2015 Bob Weinand

Improve 517b55362 (scope rebinding on method Closures)
Now it is completely impossible to rebind a scoped method Closure (only the kind you get from ReflectionMethod::getClosure()) to a foreign s

Improve 517b55362 (scope rebinding on method Closures)
Now it is completely impossible to rebind a scoped method Closure (only the kind you get from ReflectionMethod::getClosure()) to a foreign scope
Adding a lot of tests to ensure this...
Also, properly return NULL in case the Closure could not be created instead of some crippled unbound Closure

show more ...


# 517b5536 03-Oct-2015 Bob Weinand

Fixed bug #70630 (Closure::call/bind() crash with ReflectionFunction->getClosure())
This additionally removes support for binding to an unknown (not in parent hierarchy) scope.
Removing suppo

Fixed bug #70630 (Closure::call/bind() crash with ReflectionFunction->getClosure())
This additionally removes support for binding to an unknown (not in parent hierarchy) scope.
Removing support for cross-scope is necessary for certain compile-time assumptions (like class constants) to prevent unexpected results

show more ...


Revision tags: php-5.5.30, php-5.6.14, php-7.0.0RC4
# e878dff5 19-Sep-2015 Bob Weinand

Revert accidentally committed closures.c and execute.c


# 08e253cd 19-Sep-2015 Bob Weinand

Optimize zend_mm_small_size_to_bin()
It removes a cmov operation and has a much faster branch for small allocations (especially when handling strings) (<= 64 bytes)


Revision tags: php-5.6.14RC1, php-7.0.0RC3, php-5.6.13, php-7.0.0RC2, php-5.5.29, php-5.4.45
# 50d6fd6a 01-Sep-2015 Bob Weinand

Fixed bug #70397 (Segmentation fault when using Closure::call and yield)


Revision tags: php-5.6.13RC1
# 71af54e5 19-Aug-2015 Dmitry Stogov

Mark error and exception functions as "cold" (Matt's idea)


Revision tags: php-7.0.0RC1, php-5.6.12, php-5.5.28, php-7.0.0beta3, php-5.4.44, php-5.6.12RC1, php-7.0.0beta2, php-7.0.0beta1, php-5.6.11, php-5.5.27, php-5.4.43
# 5df893ce 07-Jul-2015 Aaron Piotrowski

Use NULL where possible for exception class

Matches usage of zend_throw_exception()/zend_throw_exception_ex().


# 22c38b2e 03-Jul-2015 Aaron Piotrowski

Remove need to pass error level


# 5a99c07e 03-Jul-2015 Aaron Piotrowski

Enable throwing custom exceptions from errors


# 7aa76271 30-Jun-2015 Dmitry Stogov

Use ZSTR_ API to access zend_string elements (this is just renaming without semantick changes).


Revision tags: php-5.6.11RC1, php-5.5.27RC1
# 41774bce 23-Jun-2015 Rasmus Lerdorf

Fix more minor mistakes in the proto comments


Revision tags: php-7.0.0alpha2
# 3c288b12 21-Jun-2015 Bob Weinand

Fix bad run_time_cache with Closure::call()
This also fixes a memory "leak" (memory is allocated on unbounded arena without limits) on each new Closure instantiation.
Closures with same scope

Fix bad run_time_cache with Closure::call()
This also fixes a memory "leak" (memory is allocated on unbounded arena without limits) on each new Closure instantiation.
Closures with same scope now all share the same run_time_cache (as long as it is arena allocated)

show more ...


# 3180b8e1 16-Jun-2015 Dmitry Stogov

Fixed bug #69802 (Reflection on Closure::__invoke borks type hint class name) (onr more problem)


# ed84bff4 16-Jun-2015 Dmitry Stogov

Complete fix for problems related to bug #69802


Revision tags: php-5.5.26, php-7.0.0alpha1, php-5.6.10, php-5.4.42, POST_PHP7_NSAPI_REMOVAL, PRE_PHP7_NSAPI_REMOVAL
# e7d0ca39 29-May-2015 Nikita Popov

Preserve VARIADIC flag for Closure::__invoke()

The 13 arguments are for the benefit of PHP 7, where the first
twelve use the bitmask.


Revision tags: php-5.6.10RC1, php-5.5.26RC1, php-5.5.25, php-5.6.9, php-5.4.41, php-5.6.9RC1, php-5.5.25RC1
# ef8bb69a 28-Apr-2015 Stanislav Malyshev

Ban rebinding closures to different internal classes


12345678910>>...13