]> granicus.if.org Git - php/commitdiff
add test
authorAntony Dovgal <tony2001@php.net>
Wed, 22 Mar 2006 23:10:59 +0000 (23:10 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 22 Mar 2006 23:10:59 +0000 (23:10 +0000)
ext/spl/tests/bug36825.phpt [new file with mode: 0644]

diff --git a/ext/spl/tests/bug36825.phpt b/ext/spl/tests/bug36825.phpt
new file mode 100644 (file)
index 0000000..5c633d0
--- /dev/null
@@ -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