#44604 [Opn->Fbk]: newInstanceArgs (ReflectionClass) and visivility
ID: 44604
Updated by: jani@php.net
Reported By: vituko at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Debian GNU/Linux
PHP Version: 5.3CVS-2008-04-02 (CVS)
-Assigned To:
+Assigned To: fb-req-jani
New Comment:
And the bug here is...?
Previous Comments:
------------------------------------------------------------------------
[2008-04-02 08:14:56] vituko at gmail dot com
Description:
------------
1 - call_user_func_array ($ref_f, $taboa) ;
Here, the visibility is computed from the context where this
function is called.
2 - $obx -> newInstanceArgs ($taboa) ;
ReflectionException : Access to non-public constructor of class ...
Constructor must be public anyway.
So ... eval is not so bad.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44604&edit=1
Thread (8 messages)