#44604 [Opn->Fbk]: newInstanceArgs (ReflectionClass) and visivility

From: Date: Thu, 03 Apr 2008 11:23:41 +0000
Subject: #44604 [Opn->Fbk]: newInstanceArgs (ReflectionClass) and visivility
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-123915@lists.php.net to get a copy of this message
 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)

« previous php.bugs (#123915) next »