diff options
author | Antony Dovgal <tony2001@php.net> | 2006-03-22 23:10:59 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-03-22 23:10:59 +0000 |
commit | 09fcf3162c652fca1f524bcdc4ca09f509dc689f (patch) | |
tree | 1a11f51d41f8735a74cf8defd52d5a21da024fa2 | |
parent | f7ce1d6260b8f6aee72e8f7bca5133ec0ce41a6b (diff) | |
download | php-git-09fcf3162c652fca1f524bcdc4ca09f509dc689f.tar.gz |
add test
-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 |