summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug36825.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/bug36825.phpt')
-rw-r--r--ext/spl/tests/bug36825.phpt33
1 files changed, 0 insertions, 33 deletions
diff --git a/ext/spl/tests/bug36825.phpt b/ext/spl/tests/bug36825.phpt
deleted file mode 100644
index 503ec43a43..0000000000
--- a/ext/spl/tests/bug36825.phpt
+++ /dev/null
@@ -1,33 +0,0 @@
---TEST--
-Bug #36825 (Exceptions thrown in ArrayObject::offsetGet cause segfault)
---SKIPIF--
-<?php if (!extension_loaded("spl")) print "skip"; ?>
---FILE--
-<?php
-
-class foo extends ArrayObject
-{
- public function offsetGet($key)
- {
- echo __METHOD__ . "($key)\n";
- throw new Exception("hi");
- }
-}
-
-$test = new foo();
-
-try
-{
- var_dump($test['bar']);
-}
-catch (Exception $e)
-{
- echo "got exception\n";
-}
-
-?>
-===DONE===
---EXPECT--
-foo::offsetGet(bar)
-got exception
-===DONE===