From f327994df3e8e36005f2fc09f44880bdd8e14676 Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Thu, 11 Sep 2008 15:22:17 +0000 Subject: Fixed #46051 (SplFileInfo::openFile - memory overlap) --- ext/spl/tests/bug46051.phpt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ext/spl/tests/bug46051.phpt (limited to 'ext/spl/tests/bug46051.phpt') diff --git a/ext/spl/tests/bug46051.phpt b/ext/spl/tests/bug46051.phpt new file mode 100644 index 0000000000..49a58247c0 --- /dev/null +++ b/ext/spl/tests/bug46051.phpt @@ -0,0 +1,14 @@ +--TEST-- +Bug #46051 (SplFileInfo::openFile - memory overlap) +--FILE-- +openFile(NULL, NULL, NULL); +} catch (Exception $e) { } + +var_dump($x->getPathName()); +--EXPECTF-- +%unicode|string%(%d) "%sbug46051.php" -- cgit v1.2.1