summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug46160.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/bug46160.phpt')
-rw-r--r--ext/spl/tests/bug46160.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/spl/tests/bug46160.phpt b/ext/spl/tests/bug46160.phpt
new file mode 100644
index 0000000..e4dbdff
--- /dev/null
+++ b/ext/spl/tests/bug46160.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Bug #46160 (SPL - Memory leak when exception is throwed in offsetSet method)
+--FILE--
+<?php
+
+try {
+ $x = new splqueue;
+ $x->offsetSet(0, 0);
+} catch (Exception $e) { }
+
+?>
+DONE
+--EXPECT--
+DONE