summaryrefslogtreecommitdiff
path: root/Zend/tests/bug71470.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2016-02-24 14:07:06 +0100
committerNikita Popov <nikic@php.net>2016-02-24 14:09:03 +0100
commitd1057cc13971e90ea3e7720dc5c82bbc92c4ad23 (patch)
tree17db12a79915b1282eaa94055107f4a0ac19a8a1 /Zend/tests/bug71470.phpt
parentbb2856b28c8dcc9ea5ba8dcdacb3c84b63ff945e (diff)
downloadphp-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.phpt13
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