summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug46160.phpt
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-09-23 12:06:01 +0000
committerFelipe Pena <felipe@php.net>2008-09-23 12:06:01 +0000
commit54231ab5778e24715c3080a66f2fe50e8dc35726 (patch)
tree090c88414be156695474052e49453499e8324a00 /ext/spl/tests/bug46160.phpt
parent169e68ed1aa0b149308f62609698dbb67773c444 (diff)
downloadphp-git-54231ab5778e24715c3080a66f2fe50e8dc35726.tar.gz
- MFH: Fixed bug #46160 (SPL - Memory leak when exception is throwed in offsetSet method)
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 0000000000..e4dbdff192
--- /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