summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-03-22 23:10:59 +0000
committerAntony Dovgal <tony2001@php.net>2006-03-22 23:10:59 +0000
commit09fcf3162c652fca1f524bcdc4ca09f509dc689f (patch)
tree1a11f51d41f8735a74cf8defd52d5a21da024fa2
parentf7ce1d6260b8f6aee72e8f7bca5133ec0ce41a6b (diff)
downloadphp-git-09fcf3162c652fca1f524bcdc4ca09f509dc689f.tar.gz
add test
-rw-r--r--ext/spl/tests/bug36825.phpt26
1 files changed, 26 insertions, 0 deletions
diff --git a/ext/spl/tests/bug36825.phpt b/ext/spl/tests/bug36825.phpt
new file mode 100644
index 0000000000..5c633d022e
--- /dev/null
+++ b/ext/spl/tests/bug36825.phpt
@@ -0,0 +1,26 @@
+--TEST--
+Bug #36825 ()
+--FILE--
+<?php
+
+class foo extends ArrayObject {
+ public function __construct() {
+ }
+
+ public function offsetGet($key) {
+ throw new Exception("hi");
+ }
+}
+
+$test=new foo();
+try{
+ var_dump($test['bar']);
+} catch (Exception $e) {
+ echo "got exception\n";
+}
+
+echo "Done\n";
+?>
+--EXPECT--
+got exception
+Done