Bug #72629 [Opn->Csd]: Caught exception assignment to variables ignores references

From: Date: Wed, 20 Jul 2016 09:00:44 +0000
Subject: Bug #72629 [Opn->Csd]: Caught exception assignment to variables ignores references
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202435@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72629&edit=1 ID: 72629 Updated by: laruence@php.net Reported by: ryosuke_i_628 at yahoo dot co dot jp Summary: Caught exception assignment to variables ignores references -Status: Open +Status: Closed Type: Bug Package: *General Issues Operating System: OSX 10.11.5 PHP Version: 7.1.0alpha3 Block user comment: N Private report: N New Comment: Automatic comment on behalf of laruence@gmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=97c0b133c560e81bafbedaa321216b8862e1bdfc Log: Fixed bug #72629 (Caught exception assignment to variables ignores references). Previous Comments: ------------------------------------------------------------------------ [2016-07-20 08:50:51] ryosuke_i_628 at yahoo dot co dot jp Description: ------------ Caught exception assignment to variables ignores references. Note that PHP has this bug while HHVM hasn't. Test on 3v4l: https://3v4l.org/neGAE Test script: --------------- <?php $var = null; $e = &$var; try { throw new Exception; } catch (Exception $e) { } assert('$e !== null'); assert('$var !== null'); Expected result: ---------------- No outputs. Actual result: -------------- Warning: assert(): Assertion "$var !== null" failed ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72629&edit=1

« previous php.bugs (#202435) next »