Bug #70698 [NEW]: Inline method invocations as parameter to non-existant constructors are ignored

From: Date: Mon, 12 Oct 2015 13:09:35 +0000
Subject: Bug #70698 [NEW]: Inline method invocations as parameter to non-existant constructors are ignored
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196556@lists.php.net to get a copy of this message
From: sisve at devhost dot se Operating system: All PHP version: 7.0.0RC4 Package: Unknown/Other Function Bug Type: Bug Bug description:Inline method invocations as parameter to non-existant constructors are ignored Description: ------------ Inline method invocations whose return values are passed to a non-existant constructor seems to be optimized away. This happens for PHP 5.4.8 to 7.0.0RC4 (all versions hosted by 3v4l.org). Reference: https://3v4l.org/GrZ9p Test script: --------------- <?php class MyClass { } new MyClass(die('Death!')); Expected result: ---------------- Script execution should end with "Death!" Actual result: -------------- Nothing is outputted. -- Edit bug report at https://bugs.php.net/bug.php?id=70698&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70698&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70698&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70698&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70698&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70698&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70698&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70698&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70698&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70698&r=support Expected behavior: https://bugs.php.net/fix.php?id=70698&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70698&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70698&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70698&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70698&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70698&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70698&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70698&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70698&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70698&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70698&r=mysqlcfg

« previous php.bugs (#196556) next »