summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug46051.phpt
diff options
context:
space:
mode:
authorArnaud Le Blanc <lbarnaud@php.net>2008-09-11 15:22:17 +0000
committerArnaud Le Blanc <lbarnaud@php.net>2008-09-11 15:22:17 +0000
commitf327994df3e8e36005f2fc09f44880bdd8e14676 (patch)
tree0be3726fcd20eda8459c4a536747eebac65f59eb /ext/spl/tests/bug46051.phpt
parent5f50350ca9150ae797cf10beffded535dcd9bbe5 (diff)
downloadphp-git-f327994df3e8e36005f2fc09f44880bdd8e14676.tar.gz
Fixed #46051 (SplFileInfo::openFile - memory overlap)
Diffstat (limited to 'ext/spl/tests/bug46051.phpt')
-rw-r--r--ext/spl/tests/bug46051.phpt14
1 files changed, 14 insertions, 0 deletions
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--
+<?php
+
+$x = new splfileinfo(__FILE__);
+
+try {
+$x->openFile(NULL, NULL, NULL);
+} catch (Exception $e) { }
+
+var_dump($x->getPathName());
+--EXPECTF--
+%unicode|string%(%d) "%sbug46051.php"