summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/tempnam_variation3-win32.phpt
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2010-02-07 20:15:58 +0000
committerPierre Joye <pajoye@php.net>2010-02-07 20:15:58 +0000
commit658e86b847b843e08c9576b21af31e3f1e316531 (patch)
tree654da51c9016d55ab2c6a5baec3a330aa691fd97 /ext/standard/tests/file/tempnam_variation3-win32.phpt
parentc58f63a38ae19caaab339c61486fc3bd7e5894f9 (diff)
downloadphp-git-658e86b847b843e08c9576b21af31e3f1e316531.tar.gz
- prevent unexpectable behaviors (for the user) with invalid path
Diffstat (limited to 'ext/standard/tests/file/tempnam_variation3-win32.phpt')
-rw-r--r--ext/standard/tests/file/tempnam_variation3-win32.phpt5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/standard/tests/file/tempnam_variation3-win32.phpt b/ext/standard/tests/file/tempnam_variation3-win32.phpt
index 2530736ce6..fb457cb6ab 100644
--- a/ext/standard/tests/file/tempnam_variation3-win32.phpt
+++ b/ext/standard/tests/file/tempnam_variation3-win32.phpt
@@ -70,7 +70,7 @@ for( $i=0; $i<count($names_arr); $i++ ) {
if (realpath($file_dir) == $file_path || realpath($file_dir . "\\") == $file_path) {
echo "OK\n";
} else {
- echo "Failed, not created in the correct directory" . realpath($file_dir) . ' vs ' . $file_path ."\n";
+ echo "Failed, not created in the correct directory " . realpath($file_dir) . ' vs ' . $file_path ."\n";
}
if (!is_writable($file_name)) {
@@ -99,7 +99,8 @@ OK
-- Iteration 4 --
OK
-- Iteration 5 --
-OK
+Failed, not created in the correct directory %s vs %s
+0
-- Iteration 6 --
OK
-- Iteration 7 --