Home
last modified time | relevance | path

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

1234

/php-src/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";
35 $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…
89 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7-win32.p…
94 tempnam(): Argument #1 ($directory) must not contain any null bytes
96 tempnam(): Argument #1 ($directory) must be of type string, array given
99 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";
36 $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 …
94 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation7.php on …
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.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";
59 $file_name = tempnam($file_path, $names_arr[$i]);
90 *** Testing tempnam() with obscure prefixes ***
101 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation3-win32.p…
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_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";
38 $file_name = tempnam("$file_path", $names_arr[$i]);
78 *** Testing tempnam() with obscure prefixes ***
100 tempnam(): Argument #2 ($prefix) must not contain any null bytes
102 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 Dtempnam_variation9.phpt2 Test tempnam() function: usage variations - test prefix maximum size
13 echo "*** Testing tempnam() maximum prefix size ***\n";
32 $file_name = tempnam("$file_path", $prefix);
58 *** Testing tempnam() maximum prefix size ***
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-src/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-src/ext/standard/tests/streams/
H A Dstream_cast_loses_data.phpt10 $tempnam = tempnam(sys_get_temp_dir(), 'test');
12 $stream = popen('echo 1; echo 2; rm ' . escapeshellarg($tempnam), 'r');
17 } while (file_exists($tempnam));
H A Dbug54946.phpt5 $filename = tempnam(__DIR__, "phpbug");
14 $filename = tempnam(__DIR__, "phpbug2");
24 $filename = tempnam(__DIR__, "phpbug3");
/php-src/ext/curl/tests/
H A Dcurl_reset.phpt8 $test_file = tempnam(sys_get_temp_dir(), 'php-curl-test');
9 $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');

Completed in 36 milliseconds

1234