Home
last modified time | relevance | path

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

1234

/PHP-8.0/ext/standard/tests/file/
H A Dtempnam_variation4-0.phpt2 Test tempnam() function: usage variations - permissions(0000 to 0350) of dir
17 echo "*** Testing tempnam() with dir of permissions from 0000 to 0350 ***\n";
26 $file_name = tempnam($dir_name, $prefix);
49 *** Testing tempnam() with dir of permissions from 0000 to 0350 ***
51 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
54 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
57 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
60 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
63 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
66 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
[all …]
H A Dtempnam_variation4-1.phpt2 Test tempnam() function: usage variations - permissions(0351 to 0777) of dir
17 echo "*** Testing tempnam() with dir of permissions from 0351 to 0777 ***\n";
26 $file_name = tempnam($dir_name, $prefix);
49 *** Testing tempnam() with dir of permissions from 0351 to 0777 ***
51 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
54 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
57 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
60 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
63 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
66 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
[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_variation7-win32.phpt2 Test tempnam() function: usage variations - invalid/non-existing dir
15 echo "*** Testing tempnam() with invalid/non-existing directory names ***\n";
36 $file_name = tempnam($names_arr[$i], "tempnam_variation3.tmp");
67 *** Testing tempnam() with invalid/non-existing directory names ***
70 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7-win32.p…
76 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7-win32.p…
94 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7-win32.p…
99 tempnam(): Argument #1 ($directory) must not contain any null bytes
101 tempnam(): Argument #1 ($directory) must be of type string, array given
104 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7-win32.p…
[all …]
H A Dtempnam_variation7.phpt2 Test tempnam() function: usage variations - invalid/non-existing dir
15 echo "*** Testing tempnam() with invalid/non-existing directory names ***\n";
37 $file_name = tempnam($names_arr[$i], "tempnam_variation3.tmp");
72 *** Testing tempnam() with invalid/non-existing directory names ***
75 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7.php on …
81 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7.php on …
99 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7.php on …
104 tempnam(): Argument #1 ($directory) must not contain any null bytes
106 tempnam(): Argument #1 ($directory) must be of type string, array given
109 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7.php on …
[all …]
H A Dtempnam_variation5-win32.phpt2 Test tempnam() function: usage variations - existing file
12 /* Passing an existing file as $prefix for tempnam() fn */
16 echo "*** Test tempnam() function: by passing an existing filename as prefix ***\n";
23 $created_file = tempnam("$dir_name", "tempnam_variation5.tmp");
42 *** Test tempnam() function: by passing an existing filename as prefix ***
H A Dtempnam_variation5.phpt2 Test tempnam() function: usage variations - existing file
10 /* Passing an existing file as $prefix for tempnam() fn */
14 echo "*** Test tempnam() function: by passing an existing filename as prefix ***\n";
21 $created_file = tempnam("$dir_name", "tempnam_variation5.tmp");
40 *** Test tempnam() function: by passing an existing filename as prefix ***
H A Dtempnam_variation3-win32.phpt2 Test tempnam() function: usage variations - obscure prefixes
14 echo "*** Testing tempnam() with obscure prefixes ***\n";
61 $file_name = tempnam($file_path, $names_arr[$i]);
92 *** Testing tempnam() with obscure prefixes ***
105 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation3-win32.p…
109 tempnam(): Argument #2 ($prefix) must not contain any null bytes
111 tempnam(): Argument #2 ($prefix) must be of type string, array given
H A Dtempnam_variation6-win32.phpt2 Test tempnam() function: usage variations - Using previous unique filename
16 echo "\n*** Test tempnam(): by passing previously created filenames ***\n";
20 $file_name = tempnam("$file_path", $file_name);
47 *** Test tempnam(): by passing previously created filenames ***
H A Dtempnam_variation6.phpt2 Test tempnam() function: usage variations - Using previous unique filename
14 echo "\n*** Test tempnam(): by passing previously created filenames ***\n";
18 $file_name = tempnam("$file_path", $file_name);
45 *** Test tempnam(): by passing previously created filenames ***
H A Dtempnam_variation3.phpt2 Test tempnam() function: usage variations - obscure prefixes
14 echo "*** Testing tempnam() with obscure prefixes ***\n";
39 $file_name = tempnam("$file_path", $names_arr[$i]);
79 *** Testing tempnam() with obscure prefixes ***
105 tempnam(): Argument #2 ($prefix) must not contain any null bytes
107 tempnam(): Argument #2 ($prefix) must be of type string, array given
H A Dtempnam_variation2-win32.phpt2 Test tempnam() function: usage variations - various absolute and relative paths
12 echo "*** Testing tempnam() with absolute and relative paths ***\n";
45 $file_name = tempnam($dir_paths[$i], "tempnam_variation2.tmp");
87 *** Testing tempnam() with absolute and relative paths ***
121 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation2-win32.p…
133 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation2-win32.p…
140 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation2-win32.p…
162 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
12 echo "*** Testing tempnam() with absolute and relative paths ***\n";
45 $file_name = tempnam($dir_paths[$i], "tempnam_variation2.tmp");
87 *** Testing tempnam() with absolute and relative paths ***
121 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation2.php on …
133 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation2.php on …
140 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation2.php on …
162 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
14 echo "*** Testing tempnam() with absolute and relative paths ***\n";
44 $file_name = tempnam($dir_paths[$i], "tempnam_variation8.tmp");
86 *** Testing tempnam() with absolute and relative paths ***
115 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation8-win32.p…
122 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation8-win32.p…
144 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
15 echo "*** Testing tempnam() in creation of unique files ***\n";
18 $files[$i] = tempnam("$file_path", "tempnam_variation1.tmp");
58 *** Testing tempnam() in creation of unique files ***
H A Dtempnam_variation1-win32.phpt2 Test tempnam() function: usage variations - creating files
15 echo "*** Testing tempnam() in creation of unique files ***\n";
18 $files[$i] = tempnam("$file_path", "tempnam_variation1.tmp");
58 *** Testing tempnam() in creation of unique files ***
/PHP-8.0/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-8.0/ext/standard/tests/streams/
H A Dbug54946.phpt5 $filename = tempnam(__DIR__, "phpbug");
14 $filename = tempnam(__DIR__, "phpbug2");
24 $filename = tempnam(__DIR__, "phpbug3");
/PHP-8.0/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-8.0/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');
H A Dbug74798.phpt62 $tmpFileIn = tempnam(sys_get_temp_dir(), 'test');
63 $tmpFileOut = tempnam(sys_get_temp_dir(), 'test');
70 $tmpFileOut2 = tempnam(sys_get_temp_dir(), 'test');

Completed in 31 milliseconds

1234