File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 7
7
from a trait). (Nikita)
8
8
. Fixed bug #81591 (Fatal Error not properly logged in particular cases).
9
9
(Nikita)
10
+ . Fixed bug #81626 (Error on use static:: in __сallStatic() wrapped to
11
+ Closure::fromCallable()). (Nikita)
10
12
11
13
- FPM:
12
14
. Fixed bug #81513 (Future possibility for heap overflow in FPM zlog).
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #81626: Error on use static:: in __сallStatic() wrapped to Closure::fromCallable()
3
+ --FILE--
4
+ <?php
5
+ class TestClass {
6
+ public static bool $ wasCalled = false ;
7
+ public static function __callStatic (string $ name , array $ args ): string
8
+ {
9
+ static ::$ wasCalled = true ;
10
+ return 'ok ' ;
11
+ }
12
+ }
13
+ $ closure = Closure::fromCallable ([TestClass::class, 'foo ' ]);
14
+ var_dump ($ closure ());
15
+ ?>
16
+ --EXPECT--
17
+ string(2) "ok"
Original file line number Diff line number Diff line change @@ -288,6 +288,7 @@ static ZEND_NAMED_FUNCTION(zend_closure_call_magic) /* {{{ */ {
288
288
}
289
289
290
290
fcc .object = fci .object = Z_OBJ_P (ZEND_THIS );
291
+ fcc .called_scope = zend_get_called_scope (EG (current_execute_data ));
291
292
292
293
zend_call_function (& fci , & fcc );
293
294
You can’t perform that action at this time.
0 commit comments