mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +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)
20 lines
216 B
PHP
20 lines
216 B
PHP
--TEST--
|
|
Fundamental memory leak test on temporaries
|
|
--FILE--
|
|
<?php
|
|
|
|
function ops() {
|
|
throw new Exception();
|
|
}
|
|
|
|
try{
|
|
$x = 1;
|
|
$r = [$x] + ops();
|
|
} catch (Exception $e) {
|
|
}
|
|
|
|
?>
|
|
==DONE==
|
|
--EXPECT--
|
|
==DONE==
|