summaryrefslogtreecommitdiff
path: root/Zend/tests/bug79947.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug79947.phpt')
-rw-r--r--Zend/tests/bug79947.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/tests/bug79947.phpt b/Zend/tests/bug79947.phpt
new file mode 100644
index 0000000000..18d2d75a9d
--- /dev/null
+++ b/Zend/tests/bug79947.phpt
@@ -0,0 +1,13 @@
+--TEST--
+Bug #79947: Memory leak on invalid offset type in compound assignment
+--FILE--
+<?php
+$array = [];
+$key = [];
+$array[$key] += [$key];
+var_dump($array);
+?>
+--EXPECTF--
+Warning: Illegal offset type in %s on line %d
+array(0) {
+}