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
|
- pgsql
|
||||||
. Added pg_escape_literal() and pg_escape_identifier() (Yasuo)
|
. 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! >>>
|
<<< 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.initialized = 1;
|
||||||
fcc.function_handler = mptr;
|
fcc.function_handler = mptr;
|
||||||
fcc.calling_scope = obj_ce;
|
fcc.calling_scope = obj_ce;
|
||||||
fcc.called_scope = obj_ce;
|
fcc.called_scope = intern->ce;
|
||||||
fcc.object_ptr = object;
|
fcc.object_ptr = object;
|
||||||
|
|
||||||
result = zend_call_function(&fci, &fcc TSRMLS_CC);
|
result = zend_call_function(&fci, &fcc TSRMLS_CC);
|
||||||
|
@ -20,7 +20,9 @@ class B extends A {
|
|||||||
|
|
||||||
$method = new ReflectionMethod("b::call");
|
$method = new ReflectionMethod("b::call");
|
||||||
$method->invoke(null);
|
$method->invoke(null);
|
||||||
|
$method->invokeArgs(null, array());
|
||||||
$method = new ReflectionMethod("A::call");
|
$method = new ReflectionMethod("A::call");
|
||||||
$method->invoke(null);
|
$method->invoke(null);
|
||||||
|
$method->invokeArgs(null, array());
|
||||||
--EXPECTF--
|
--EXPECTF--
|
||||||
BA
|
BBAA
|
||||||
|
Loading…
Reference in New Issue
Block a user