diff options
-rw-r--r-- | ext/spl/tests/bug36825.phpt | 26 |
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 |