summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/tempnam_variation1-win32-mb.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/file/tempnam_variation1-win32-mb.phpt')
-rw-r--r--ext/standard/tests/file/tempnam_variation1-win32-mb.phpt14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/standard/tests/file/tempnam_variation1-win32-mb.phpt b/ext/standard/tests/file/tempnam_variation1-win32-mb.phpt
index 4d985410da..3e659c092c 100644
--- a/ext/standard/tests/file/tempnam_variation1-win32-mb.phpt
+++ b/ext/standard/tests/file/tempnam_variation1-win32-mb.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test tempnam() function: usage variations - creating files
+Test tempnam() function: usage variations - creating files
--SKIPIF--
<?php
if(substr(PHP_OS, 0, 3) != "WIN")
@@ -21,24 +21,24 @@ for($i=1; $i<=10; $i++) {
echo "-- Iteration $i --\n";
$files[$i] = tempnam("$file_path", "tempnam_variation1.tmp");
- if( file_exists($files[$i]) ) {
+ if( file_exists($files[$i]) ) {
- echo "File name is => ";
+ echo "File name is => ";
print($files[$i]);
echo "\n";
-
+
echo "File permissions are => ";
printf("%o", fileperms($files[$i]) );
echo "\n";
clearstatcache();
echo "File created in => ";
- $file_dir = dirname($files[$i]);
-
+ $file_dir = dirname($files[$i]);
+
if (realpath($file_dir) == realpath(sys_get_temp_dir()) || realpath($file_dir."\\") == realpath(sys_get_temp_dir())) {
echo "temp dir\n";
}
- else if (realpath($file_dir) == realpath($file_path) || realpath($file_dir."\\") == realpath($file_path)) {
+ else if (realpath($file_dir) == realpath($file_path) || realpath($file_dir."\\") == realpath($file_path)) {
echo "directory specified\n";
}
else {