summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/bug25038.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/general_functions/bug25038.phpt')
-rwxr-xr-xext/standard/tests/general_functions/bug25038.phpt32
1 files changed, 0 insertions, 32 deletions
diff --git a/ext/standard/tests/general_functions/bug25038.phpt b/ext/standard/tests/general_functions/bug25038.phpt
deleted file mode 100755
index 52fe032056..0000000000
--- a/ext/standard/tests/general_functions/bug25038.phpt
+++ /dev/null
@@ -1,32 +0,0 @@
---TEST--
-Bug #25038 (call_user_func issues warning if function throws exception)
---FILE--
-<?php
-
-function bar($x='no argument')
-{
- throw new Exception("This is an exception from bar({$x}).");
-}
-try
-{
- bar('first try');
-}
-catch (Exception $e)
-{
- print $e->getMessage()."\n";
-}
-try
-{
- call_user_func('bar','second try');
-}
-catch (Exception $e)
-{
- print $e->getMessage()."\n";
-}
-
-?>
-===DONE===
---EXPECT--
-This is an exception from bar(first try).
-This is an exception from bar(second try).
-===DONE===