#44604 [NEW]: newInstanceArgs (ReflectionClass) and visivility
From: vituko at gmail dot com
Operating system: Debian GNU/Linux
PHP version: 5.3CVS-2008-04-02 (CVS)
PHP Bug Type: Scripting Engine problem
Bug description: newInstanceArgs (ReflectionClass) and visivility
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 bug report at http://bugs.php.net/?id=44604&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44604&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44604&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44604&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44604&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=44604&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44604&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44604&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44604&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44604&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44604&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=44604&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=44604&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44604&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44604&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44604&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44604&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44604&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44604&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44604&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44604&r=mysqlcfg
Thread (8 messages)
- vituko at gmail dot com