mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
3a5fa926bf
commit afe963e6cc289696e60c6c679796ba2197c52b3b Author: Dmitry Stogov <dmitry@zend.com> Date: Fri Nov 13 15:32:29 2015 +0300 Added news entry commit a126b891c97848dd7ef8f1abf716328c46e0f19c Author: Dmitry Stogov <dmitry@zend.com> Date: Fri Nov 13 15:29:21 2015 +0300 VERIFY_RETURN_TYPE doesn't have to cleanup operand on exception, bacause now, live temporary variables are released by exception unwinder. commit 0db475e98786e6bcaa8401ee3e0b33743b9a2f2b Author: Dmitry Stogov <dmitry@zend.com> Date: Thu Nov 12 22:55:39 2015 +0300 Fixed copy/paste commit 0ac73fe7174bec9de9a610319a98b259bea67f7f Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Nov 11 16:11:50 2015 +0300 Fixed bug #62210 (Exceptions can leak temporary variables)
19 lines
291 B
PHP
19 lines
291 B
PHP
--TEST--
|
|
Exception after separation during indirect write to fcall result
|
|
--FILE--
|
|
<?php
|
|
|
|
function throwing() { throw new Exception; }
|
|
|
|
function getArray($x) { return [$x]; }
|
|
|
|
try {
|
|
getArray(0)[throwing()] = 1;
|
|
} catch (Exception $e) {
|
|
echo "Exception\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
Exception
|