Don't report hashtable iterator leaks on unclean shutdown, those
are expected.
. Fixed bug #71596 (Segmentation fault on ZTS with date function
(setlocale)). (Anatol)
. Fixed bug #71535 (Integer overflow in zend_mm_alloc_heap()). (Dmitry)
+ . Fixed bug #71470 (Leaked 1 hashtable iterators). (Nikita)
- ODBC:
. Fixed bug #47803, #69526 (Executing prepared statements is succesfull only
--- /dev/null
+--TEST--
+Bug #71470: Leaked 1 hashtable iterators
+--FILE--
+<?php
+
+$array = [1, 2, 3];
+foreach ($array as &$v) {
+ die("foo\n");
+}
+
+?>
+--EXPECT--
+foo
zend_shutdown_fpu();
#ifdef ZEND_DEBUG
- if (EG(ht_iterators_used)) {
+ if (EG(ht_iterators_used) && !CG(unclean_shutdown)) {
zend_error(E_WARNING, "Leaked %" PRIu32 " hashtable iterators", EG(ht_iterators_used));
}
#endif