diff options
Diffstat (limited to 'Zend/tests/catch.phpt')
-rw-r--r-- | Zend/tests/catch.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/tests/catch.phpt b/Zend/tests/catch.phpt new file mode 100644 index 0000000..0ec5cf7 --- /dev/null +++ b/Zend/tests/catch.phpt @@ -0,0 +1,23 @@ +--TEST-- +catch shouldn't call __autoload +--FILE-- +<?php +function __autoload($name) { + echo("AUTOLOAD '$name'\n"); + eval("class $name {}"); +} + + +try { +} catch (A $e) { +} + +try { + throw new Exception(); +} catch (B $e) { +} catch (Exception $e) { + echo "ok\n"; +} +?> +--EXPECT-- +ok |