PHP  
 PHP_7_0
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Expected Test Failure Report for Zend/tests/try/bug70228.phpt ('Bug #70228 (memleak if return in finally block)')

Script

1: <?php
2:
3:
function foo() {
4:     try { return 
str_repeat("a"2); }
5:     
finally { return true; }
6: }
7:
8:
var_dump(foo());
9:
?>
10:

Expected

string(3) "bar"

Output

bool(true)

Diff

001+ bool(true)
001- string(3) "bar"

 

Generated at Wed, 08 Nov 2017 19:36:35 +0000 (8 days ago)

Copyright © 2005-2017 The PHP Group
All rights reserved.