com php-src: Add XFAIL test for #70228: Zend/tests/try/bug70228.phpt

From: Date: Mon, 10 Aug 2015 14:02:15 +0000
Subject: com php-src: Add XFAIL test for #70228: Zend/tests/try/bug70228.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-88625@lists.php.net to get a copy of this message
Commit: 55a017c30309017e498789a5d734631b033c1420 Author: Xinchen Hui <laruence@php.net> Mon, 10 Aug 2015 22:02:15 +0800 Parents: 87a5f2c4862d823c16b562103a9b83ae732b5ec6 Branches: PHP-7.0.0 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=55a017c30309017e498789a5d734631b033c1420 Log: Add XFAIL test for #70228 Bugs: https://bugs.php.net/70228 Changed paths: A Zend/tests/try/bug70228.phpt Diff: diff --git a/Zend/tests/try/bug70228.phpt b/Zend/tests/try/bug70228.phpt new file mode 100644 index 0000000..23f5864 --- /dev/null +++ b/Zend/tests/try/bug70228.phpt @@ -0,0 +1,16 @@ +--TEST-- +Bug #70228 (memleak if return in finally block) +--XFAIL-- +See https://bugs.php.net/bug.php?id=70228 +--FILE-- +<?php + +function foo() { + try { return str_repeat("a", 2); } + finally { return true; } +} + +var_dump(foo()); +?> +--EXPECT-- +string(3) "bar"

« previous php.cvs (#88625) next »