diff options
author | Nikita Popov <nikic@php.net> | 2014-12-19 21:45:54 +0100 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2014-12-19 21:46:38 +0100 |
commit | 87ccf50badc9926260b62ca466bdd515901815fd (patch) | |
tree | 5aa14de59da9257bb2dca323d308218927d4a164 /Zend | |
parent | f382fbf4c1e1cea3cf6137f69f03810c7e99ee32 (diff) | |
parent | aa394e70ff8cda63ee4382d2488d80936e5122dc (diff) | |
download | php-git-87ccf50badc9926260b62ca466bdd515901815fd.tar.gz |
Merge branch 'PHP-5.5' into PHP-5.6
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/tests/bug67111.phpt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Zend/tests/bug67111.phpt b/Zend/tests/bug67111.phpt new file mode 100644 index 0000000000..0fdfdfb517 --- /dev/null +++ b/Zend/tests/bug67111.phpt @@ -0,0 +1,20 @@ +--TEST-- +Bug #67111: Memory leak when using "continue 2" inside two foreach loops +--FILE-- +<?php + +$array1 = [1, 2, 3]; +$array2 = [1, 2, 3]; + +foreach ($array1 as $x) { + foreach ($array2 as $y) { + echo "$x.$y\n"; + continue 2; + } +} + +?> +--EXPECT-- +1.1 +2.1 +3.1 |