From: richardcook at gmail dot com Operating system: Windows Vista (WAMP) PHP version: 5.2.9 PHP Bug Type: Reflection related Bug description: reflection class
Description: ------------ ReflectionClass::newInstanceArgs throws a constructor fail warning and does not create the class if the class' constructor has variable references in it Reproduce code: --------------- http://pastebin.com/f4a147910 Expected result: ---------------- Array ( [x] => 1 [y] => 2 [z] => 3 ) Foo Object ( [arr] => Array ( [x] => 1 [y] => 2 [z] => 3 ) ) Bar Object ( [foo] => Foo Object ( [arr] => Array ( [x] => 1 [y] => 2 [z] => 3 ) ) [arr] => Array ( [x] => 1 [y] => 2 [z] => 3 ) ) Actual result: -------------- Warning: Invocation of Bar's constructor failed in [code path] on line 9 Fatal error: Call to a member function mod() on a non-object in [code path] on line 36 -- Edit bug report at http://bugs.php.net/?id=47955&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47955&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47955&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47955&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47955&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47955&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47955&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47955&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47955&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47955&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47955&r=support Expected behavior: http://bugs.php.net/fix.php?id=47955&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47955&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47955&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47955&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47955&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47955&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47955&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47955&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47955&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47955&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47955&r=mysqlcfg
