From: Operating system: Debian 6.0 PHP version: 5.3.5 Package: Scripting Engine problem Bug Type: Bug Bug description:Object instantion argument not executed when the constructor is missing
Description: ------------ I runned in a very weird issue. When i create a new object, with another object instantation as argument, the 2nd object is not created if the first class has no constructor. It looks the arguments are simply not executed when the constructor is missing. When a constructor is added, it works like it should. I tested this with multiple 5.3 versions and its confirmed as not working by multiple people. Test script: --------------- <?php class A {} new A(new ThisIsANotExistingClass()); Expected result: ---------------- A nice fatal error since ThisIsANotExistingClass is missing. Actual result: -------------- The scripts runs fine and nothing apears on the screen. -- Edit bug report at http://bugs.php.net/bug.php?id=54170&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54170&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54170&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54170&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54170&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54170&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54170&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54170&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54170&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54170&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54170&r=support Expected behavior: http://bugs.php.net/fix.php?id=54170&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54170&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54170&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54170&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54170&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54170&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54170&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54170&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54170&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54170&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54170&r=mysqlcfg