diff options
author | Nikita Popov <nikic@php.net> | 2016-02-24 14:07:06 +0100 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2016-02-24 14:09:03 +0100 |
commit | d1057cc13971e90ea3e7720dc5c82bbc92c4ad23 (patch) | |
tree | 17db12a79915b1282eaa94055107f4a0ac19a8a1 /Zend/tests/bug71470.phpt | |
parent | bb2856b28c8dcc9ea5ba8dcdacb3c84b63ff945e (diff) | |
download | php-git-d1057cc13971e90ea3e7720dc5c82bbc92c4ad23.tar.gz |
Fixed bug #71470
Don't report hashtable iterator leaks on unclean shutdown, those
are expected.
Diffstat (limited to 'Zend/tests/bug71470.phpt')
-rw-r--r-- | Zend/tests/bug71470.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/tests/bug71470.phpt b/Zend/tests/bug71470.phpt new file mode 100644 index 0000000000..6f8b4f0103 --- /dev/null +++ b/Zend/tests/bug71470.phpt @@ -0,0 +1,13 @@ +--TEST-- +Bug #71470: Leaked 1 hashtable iterators +--FILE-- +<?php + +$array = [1, 2, 3]; +foreach ($array as &$v) { + die("foo\n"); +} + +?> +--EXPECT-- +foo |