summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug64106.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/bug64106.phpt')
-rw-r--r--ext/spl/tests/bug64106.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/spl/tests/bug64106.phpt b/ext/spl/tests/bug64106.phpt
new file mode 100644
index 0000000000..855caef213
--- /dev/null
+++ b/ext/spl/tests/bug64106.phpt
@@ -0,0 +1,15 @@
+--TEST--
+Bug #64106: Segfault on SplFixedArray[][x] = y when extended
+--FILE--
+<?php
+
+class MyFixedArray extends SplFixedArray {
+ public function offsetGet($offset) {}
+}
+
+$array = new MyFixedArray(10);
+$array[][1] = 10;
+
+?>
+--EXPECTF--
+Notice: Indirect modification of overloaded element of MyFixedArray has no effect in %s on line %d