From: Bob Weinand Date: Thu, 9 Jul 2015 14:54:41 +0000 (+0200) Subject: Add test guaranteeing that loop vars are only freed after potential return type excep... X-Git-Tag: php-7.1.1RC1~35^2~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5db5a558d550bf441373febebbb02f3884209d1;p=php Add test guaranteeing that loop vars are only freed after potential return type exceptions --- diff --git a/Zend/tests/return_types/029.phpt b/Zend/tests/return_types/029.phpt new file mode 100644 index 0000000000..37587452f5 --- /dev/null +++ b/Zend/tests/return_types/029.phpt @@ -0,0 +1,19 @@ +--TEST-- +Return types must not double free loop variables +--FILE-- + +--EXPECT-- +no leak or segfault