summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug53362.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/bug53362.phpt')
-rw-r--r--ext/spl/tests/bug53362.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/spl/tests/bug53362.phpt b/ext/spl/tests/bug53362.phpt
new file mode 100644
index 000000000..70ba6e203
--- /dev/null
+++ b/ext/spl/tests/bug53362.phpt
@@ -0,0 +1,22 @@
+--TEST--
+Bug #53362 (Segmentation fault when extending SplFixedArray)
+--FILE--
+<?php
+
+class obj extends SplFixedArray{
+ public function offsetSet($offset, $value) {
+ var_dump($offset);
+ }
+}
+
+$obj = new obj;
+
+$obj[]=2;
+$obj[]=2;
+$obj[]=2;
+
+?>
+--EXPECTF--
+NULL
+NULL
+NULL