summaryrefslogtreecommitdiff
path: root/Zend/tests/bug29368.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug29368.phpt')
-rwxr-xr-xZend/tests/bug29368.phpt34
1 files changed, 0 insertions, 34 deletions
diff --git a/Zend/tests/bug29368.phpt b/Zend/tests/bug29368.phpt
deleted file mode 100755
index c16399abbc..0000000000
--- a/Zend/tests/bug29368.phpt
+++ /dev/null
@@ -1,34 +0,0 @@
---TEST--
-Bug #29368 (The destructor is called when an exception is thrown from the constructor)
---FILE--
-<?php
-
-class Foo
-{
- function __construct()
- {
- echo __METHOD__ . "\n";
- throw new Exception;
- }
- function __destruct()
- {
- echo __METHOD__ . "\n";
- }
-}
-
-try
-{
- $bar = new Foo;
-} catch(Exception $exc)
-{
- echo "Caught exception!\n";
-}
-
-unset($bar);
-
-?>
-===DONE===
---EXPECTF--
-Foo::__construct
-Caught exception!
-===DONE===