summaryrefslogtreecommitdiff
path: root/Zend/tests/bug30725.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug30725.phpt')
-rwxr-xr-xZend/tests/bug30725.phpt32
1 files changed, 0 insertions, 32 deletions
diff --git a/Zend/tests/bug30725.phpt b/Zend/tests/bug30725.phpt
deleted file mode 100755
index ce6c9a50a2..0000000000
--- a/Zend/tests/bug30725.phpt
+++ /dev/null
@@ -1,32 +0,0 @@
---TEST--
-Bug #30725 (PHP segfaults when an exception is thrown in getIterator() within foreach)
---FILE--
-<?php
-
-class Test implements IteratorAggregate
-{
- function getIterator()
- {
- throw new Exception();
- }
-}
-
-try
-{
- $it = new Test;
- foreach($it as $v)
- {
- echo "Fail\n";
- }
- echo "Wrong\n";
-}
-catch(Exception $e)
-{
- echo "Caught\n";
-}
-
-?>
-===DONE===
---EXPECT--
-Caught
-===DONE===