Home
last modified time | relevance | path

Searched refs:tempnam (Results 1 – 25 of 79) sorted by relevance

1234

/PHP-7.4/ext/standard/tests/file/
H A Dtempnam_variation4-1.phpt2 Test tempnam() function: usage variations - permissions(0351 to 0777) of dir
12 /* Prototype: string tempnam ( string $dir, string $prefix );
21 echo "*** Testing tempnam() with dir of permissions from 0351 to 0777 ***\n";
30 $file_name = tempnam($dir_name, $prefix);
53 *** Testing tempnam() with dir of permissions from 0351 to 0777 ***
55 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o…
58 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o…
61 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o…
64 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o…
67 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o…
[all …]
H A Dtempnam_variation4-0.phpt2 Test tempnam() function: usage variations - permissions(0000 to 0350) of dir
12 /* Prototype: string tempnam ( string $dir, string $prefix );
21 echo "*** Testing tempnam() with dir of permissions from 0000 to 0350 ***\n";
30 $file_name = tempnam($dir_name, $prefix);
53 *** Testing tempnam() with dir of permissions from 0000 to 0350 ***
55 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o…
58 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o…
61 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o…
64 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o…
67 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o…
[all …]
H A Dbug42560.phpt2 Bug #42560 Empty directory argument to tempnam yields open_basedir problems
7 $tempnam = tempnam('', 'test');
8 var_dump($tempnam !== false);
9 var_dump(file_exists($tempnam));
11 if (file_exists($tempnam)) {
12 unlink($tempnam);
H A Dbug52624.phpt2 Bug #52624 (tempnam() by-pass open_basedir with inexistent directory)
8 echo tempnam("directory_that_not_exists", "prefix_");
12 Notice: tempnam(): file created in the system's temporary directory in %sbug52624.php on line %d
14 Warning: tempnam(): open_basedir restriction in effect. File(%s) is not within the allowed path(s):…
H A Dbug44607.phpt6 $tempnam = __DIR__ . '/' . 'tmpbug44607.txt';
10 file_put_contents($tempnam, $data);
11 $fd = fopen($tempnam, 'r');
18 unlink($tempnam);
H A Dtempnam_variation5.phpt2 Test tempnam() function: usage variations - existing file
10 /* Prototype: string tempnam ( string $dir, string $prefix );
14 /* Passing an existing file as $prefix for tempnam() fn */
18 echo "*** Test tempnam() function: by passing an existing filename as prefix ***\n";
25 $created_file = tempnam("$dir_name", "tempnam_variation5.tmp");
44 *** Test tempnam() function: by passing an existing filename as prefix ***
H A Dtempnam_variation5-win32.phpt2 Test tempnam() function: usage variations - existing file
12 /* Prototype: string tempnam ( string $dir, string $prefix );
16 /* Passing an existing file as $prefix for tempnam() fn */
20 echo "*** Test tempnam() function: by passing an existing filename as prefix ***\n";
27 $created_file = tempnam("$dir_name", "tempnam_variation5.tmp");
46 *** Test tempnam() function: by passing an existing filename as prefix ***
H A Dtempnam_variation7.phpt2 Test tempnam() function: usage variations - invalid/non-existing dir
12 /* Prototype: string tempnam ( string $dir, string $prefix );
19 echo "*** Testing tempnam() with invalid/non-existing directory names ***\n";
40 $file_name = tempnam($names_arr[$i], "tempnam_variation3.tmp");
71 *** Testing tempnam() with invalid/non-existing directory names ***
74 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7.php on …
80 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7.php on …
98 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7.php on …
104 Warning: tempnam() expects parameter 1 to be a valid path, string given in %s on line %d
110 Warning: tempnam() expects parameter 1 to be a valid path, array given in %s on line %d
[all …]
H A Dtempnam_variation7-win32.phpt2 Test tempnam() function: usage variations - invalid/non-existing dir
12 /* Prototype: string tempnam ( string $dir, string $prefix );
19 echo "*** Testing tempnam() with invalid/non-existing directory names ***\n";
39 $file_name = tempnam($names_arr[$i], "tempnam_variation3.tmp");
66 *** Testing tempnam() with invalid/non-existing directory names ***
69 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7-win32.p…
75 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7-win32.p…
93 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7-win32.p…
105 Warning: tempnam() expects parameter 1 to be a valid path, array given in %s on line %d
111 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7-win32.p…
[all …]
H A Dtempnam_variation3-win32.phpt2 Test tempnam() function: usage variations - obscure prefixes
12 /* Prototype: string tempnam ( string $dir, string $prefix );
18 echo "*** Testing tempnam() with obscure prefixes ***\n";
64 $file_name = tempnam($file_path, $names_arr[$i]);
91 *** Testing tempnam() with obscure prefixes ***
104 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation3-win32.p…
109 Warning: tempnam() expects parameter 2 to be a valid path, string given in %stempnam_variation3-win…
114 Warning: tempnam() expects parameter 2 to be a valid path, array given in %s\ext\standard\tests\fil…
H A Dtempnam_variation6-win32.phpt2 Test tempnam() function: usage variations - Using previous unique filename
12 /* Prototype: string tempnam ( string $dir, string $prefix );
20 echo "\n*** Test tempnam(): by passing previously created filenames ***\n";
24 $file_name = tempnam("$file_path", $file_name);
51 *** Test tempnam(): by passing previously created filenames ***
H A Dtempnam_variation6.phpt2 Test tempnam() function: usage variations - Using previous unique filename
10 /* Prototype: string tempnam ( string $dir, string $prefix );
18 echo "\n*** Test tempnam(): by passing previously created filenames ***\n";
22 $file_name = tempnam("$file_path", $file_name);
49 *** Test tempnam(): by passing previously created filenames ***
H A Dtempnam_variation3.phpt2 Test tempnam() function: usage variations - obscure prefixes
12 /* Prototype: string tempnam ( string $dir, string $prefix );
18 echo "*** Testing tempnam() with obscure prefixes ***\n";
42 $file_name = tempnam("$file_path", $names_arr[$i]);
78 *** Testing tempnam() with obscure prefixes ***
105 Warning: tempnam() expects parameter 2 to be a valid path, string given in %s on line %d
111 Warning: tempnam() expects parameter 2 to be a valid path, array given in %s on line %d
H A Dtempnam_variation2-win32.phpt2 Test tempnam() function: usage variations - various absolute and relative paths
10 /* Prototype: string tempnam ( string $dir, string $prefix );
16 echo "*** Testing tempnam() with absolute and relative paths ***\n";
49 $file_name = tempnam($dir_paths[$i], "tempnam_variation2.tmp");
91 *** Testing tempnam() with absolute and relative paths ***
125 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation2-win32.p…
137 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation2-win32.p…
144 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation2-win32.p…
166 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation2-win32.p…
H A Dtempnam_variation2.phpt2 Test tempnam() function: usage variations - various absolute and relative paths
10 /* Prototype: string tempnam ( string $dir, string $prefix );
16 echo "*** Testing tempnam() with absolute and relative paths ***\n";
49 $file_name = tempnam($dir_paths[$i], "tempnam_variation2.tmp");
91 *** Testing tempnam() with absolute and relative paths ***
125 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation2.php on …
137 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation2.php on …
144 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation2.php on …
166 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation2.php on …
H A Dtempnam_variation8-win32.phpt2 Test tempnam() function: usage variations - various absolute and relative paths
12 /* Prototype: string tempnam ( string $dir, string $prefix );
18 echo "*** Testing tempnam() with absolute and relative paths ***\n";
48 $file_name = tempnam($dir_paths[$i], "tempnam_variation8.tmp");
90 *** Testing tempnam() with absolute and relative paths ***
119 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation8-win32.p…
126 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation8-win32.p…
148 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation8-win32.p…
H A Dbug65701.phpt2 Test for bug #65701: copy() doesn't work when destination filename is created by tempnam()
14 $dst = tempnam($file_path, 'dstbug65701_file.txt');
H A Dtempnam_variation1-win32-mb.phpt2 Test tempnam() function: usage variations - creating files
10 /* Prototype: string tempnam ( string $dir, string $prefix );
19 echo "*** Testing tempnam() in creation of unique files ***\n";
22 $files[$i] = tempnam("$file_path", "tempnam_variation1.tmp");
62 *** Testing tempnam() in creation of unique files ***
H A Dtempnam_variation1-win32.phpt2 Test tempnam() function: usage variations - creating files
10 /* Prototype: string tempnam ( string $dir, string $prefix );
19 echo "*** Testing tempnam() in creation of unique files ***\n";
22 $files[$i] = tempnam("$file_path", "tempnam_variation1.tmp");
62 *** Testing tempnam() in creation of unique files ***
H A Dtempnam_variation1.phpt2 Test tempnam() function: usage variations - creating files
10 /* Prototype: string tempnam ( string $dir, string $prefix );
19 echo "*** Testing tempnam() in creation of unique files ***\n";
22 $files[$i] = tempnam("$file_path", "tempnam_variation1.tmp");
65 *** Testing tempnam() in creation of unique files ***
/PHP-7.4/tests/security/
H A Dopen_basedir_tempnam.phpt9 test_open_basedir_before("tempnam");
11 var_dump(tempnam("../bad", "test"));
12 var_dump(tempnam("..", "test"));
13 var_dump(tempnam("../", "test"));
14 var_dump(tempnam("/", "test"));
15 var_dump(tempnam("../bad/.", "test"));
16 var_dump(tempnam("./../.", "test"));
17 var_dump(tempnam("", "test"));
25 $file = tempnam(".", "test");
29 $file = tempnam("../ok", "test");
[all …]
/PHP-7.4/ext/standard/tests/streams/
H A Dbug54946.phpt5 $filename = tempnam(__DIR__, "phpbug");
14 $filename = tempnam(__DIR__, "phpbug2");
24 $filename = tempnam(__DIR__, "phpbug3");
/PHP-7.4/ext/curl/tests/
H A Dcurl_reset.phpt10 $test_file = tempnam(sys_get_temp_dir(), 'php-curl-test');
11 $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test');
H A Dcurl_write_file.phpt13 $test_file = tempnam(sys_get_temp_dir(), 'php-curl-test');
14 $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test');
/PHP-7.4/ext/openssl/tests/
H A Dbug74720_0.phpt64 $tmpFileIn = tempnam(sys_get_temp_dir(), 'test');
65 $tmpFileOut = tempnam(sys_get_temp_dir(), 'test');
73 $tmpFileOut2 = tempnam(sys_get_temp_dir(), 'test');

Completed in 39 milliseconds

1234