mirror of
https://github.com/php/php-src.git
synced 2024-12-15 04:45:03 +08:00
Fixed bug #60968 (Late static binding doesn't work with ReflectionMethod::invokeArgs())
This commit is contained in:
parent
024e1307c6
commit
d2ca448f07
4
NEWS
4
NEWS
@ -35,4 +35,8 @@ PHP NEWS
|
||||
- pgsql
|
||||
. Added pg_escape_literal() and pg_escape_identifier() (Yasuo)
|
||||
|
||||
- Reflection:
|
||||
. Fixed bug #60968 (Late static binding doesn't work with
|
||||
ReflectionMethod::invokeArgs()). (Laruence)
|
||||
|
||||
<<< NOTE: Insert NEWS from last stable release here prior to actual release! >>>
|
||||
|
@ -2920,7 +2920,7 @@ ZEND_METHOD(reflection_method, invokeArgs)
|
||||
fcc.initialized = 1;
|
||||
fcc.function_handler = mptr;
|
||||
fcc.calling_scope = obj_ce;
|
||||
fcc.called_scope = obj_ce;
|
||||
fcc.called_scope = intern->ce;
|
||||
fcc.object_ptr = object;
|
||||
|
||||
result = zend_call_function(&fci, &fcc TSRMLS_CC);
|
||||
|
@ -20,7 +20,9 @@ class B extends A {
|
||||
|
||||
$method = new ReflectionMethod("b::call");
|
||||
$method->invoke(null);
|
||||
$method->invokeArgs(null, array());
|
||||
$method = new ReflectionMethod("A::call");
|
||||
$method->invoke(null);
|
||||
$method->invokeArgs(null, array());
|
||||
--EXPECTF--
|
||||
BA
|
||||
BBAA
|
||||
|
Loading…
Reference in New Issue
Block a user