. Fixed bug #70214 (FASYNC not defined, needs sys/file.h include). (Bob)
- Standard:
+ . Fixed bug #70250 (extract() turns array elements to references).
+ (Laruence)
. Fixed bug #70211 (php 7 ZEND_HASH_IF_FULL_DO_RESIZE use after free).
(Laruence)
. Fixed bug #70208 (Assert breaking access on objects). (Bob)
zend_hash_update(symbol_table, Z_STR(final_name), entry);
}
} else {
+ ZVAL_DEREF(entry);
if (Z_REFCOUNTED_P(entry)) Z_ADDREF_P(entry);
zend_hash_update_ind(symbol_table, Z_STR(final_name), entry);
}
--- /dev/null
+--TEST--
+Bug #70250 (extract() turns array elements to references)
+--FILE--
+<?php
+$array = ['key' => 'value'];
+
+$ref = &$array['key'];
+
+unset($ref);
+
+extract($array);
+
+$key = "bad";
+
+var_dump($array);
+?>
+--EXPECT--
+array(1) {
+ ["key"]=>
+ string(5) "value"
+}