summaryrefslogtreecommitdiff
path: root/Zend/tests/bug73900.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug73900.phpt')
-rw-r--r--Zend/tests/bug73900.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/Zend/tests/bug73900.phpt b/Zend/tests/bug73900.phpt
new file mode 100644
index 0000000000..fbd5b8604a
--- /dev/null
+++ b/Zend/tests/bug73900.phpt
@@ -0,0 +1,15 @@
+--TEST--
+Bug #73900: Use After Free in unserialize() SplFixedArray
+--FILE--
+<?php
+
+$a = new stdClass;
+$b = new SplFixedArray(1);
+$b[0] = $a;
+$c = &$b[0];
+var_dump($c);
+
+?>
+--EXPECT--
+object(stdClass)#1 (0) {
+}