summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug46051.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/bug46051.phpt')
-rw-r--r--ext/spl/tests/bug46051.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/spl/tests/bug46051.phpt b/ext/spl/tests/bug46051.phpt
index e993951ffa..d53f87bc47 100644
--- a/ext/spl/tests/bug46051.phpt
+++ b/ext/spl/tests/bug46051.phpt
@@ -6,8 +6,8 @@ Bug #46051 (SplFileInfo::openFile - memory overlap)
$x = new splfileinfo(__FILE__);
try {
-$x->openFile(NULL, NULL, NULL);
-} catch (Exception $e) { }
+ $x->openFile(NULL, NULL, NULL);
+} catch (TypeError $e) { }
var_dump($x->getPathName());
--EXPECTF--