summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/tempnam_variation7.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/file/tempnam_variation7.phpt')
-rw-r--r--ext/standard/tests/file/tempnam_variation7.phpt20
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/standard/tests/file/tempnam_variation7.phpt b/ext/standard/tests/file/tempnam_variation7.phpt
index d24c1d8974..4a5ffcd332 100644
--- a/ext/standard/tests/file/tempnam_variation7.phpt
+++ b/ext/standard/tests/file/tempnam_variation7.phpt
@@ -11,13 +11,13 @@ if(substr(PHP_OS, 0, 3) == "WIN")
Description: Create file with unique file name.
*/
-/* Passing invalid/non-existing args for $dir,
+/* Passing invalid/non-existing args for $dir,
hence the unique files will be created in temporary dir */
echo "*** Testing tempnam() with invalid/non-existing directory names ***\n";
-/* An array of names, which will be passed as a dir name */
+/* An array of names, which will be passed as a dir name */
$names_arr = array(
- /* Invalid args */
+ /* Invalid args */
-1,
TRUE,
FALSE,
@@ -28,7 +28,7 @@ $names_arr = array(
array(),
/* Non-existing dirs */
- "/no/such/file/dir",
+ "/no/such/file/dir",
"php"
);
@@ -46,22 +46,22 @@ for( $i=0; $i<count($names_arr); $i++ ) {
echo "File permissions are => ";
printf("%o", fileperms($file_name) );
echo "\n";
-
+
echo "File created in => ";
$file_dir = dirname($file_name);
-
+
if (realpath($file_dir) == realpath(sys_get_temp_dir())) {
echo "temp dir\n";
}
else {
echo "unknown location\n";
- }
-
+ }
+
}
- else {
+ else {
echo "-- File is not created --\n";
}
-
+
unlink($file_name);
}