mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Respect the object type the user specified (i.e., never automatically
convert the result of "new Java()" to a primitive type)
This commit is contained in:
parent
313ca6b5e8
commit
3e4a4f2376
2 changed files with 2 additions and 2 deletions
|
@ -136,7 +136,7 @@ public class reflect {
|
|||
}
|
||||
|
||||
Object coercedArgs[] = coerce(selected.getParameterTypes(), args);
|
||||
setResult(result, selected.newInstance(coercedArgs));
|
||||
setResultFromObject(result, selected.newInstance(coercedArgs));
|
||||
|
||||
} catch (Exception e) {
|
||||
setException(result, e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue