Home
last modified time | relevance | path

Searched refs:tempnam (Results 1 – 25 of 79) sorted by last modified time

1234

/PHP-7.4/ext/standard/
H A Dfile.c817 PHP_FUNCTION(tempnam) in PHP_FUNCTION() argument
H A Dbasic_functions.c3147 PHP_FE(tempnam, arginfo_tempnam)
H A Dfile.h27 PHP_FUNCTION(tempnam);
/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/file/
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 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_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 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 ***
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 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_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_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_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 …]
/PHP-7.4/ext/mysqli/tests/
H A Dmysqli_get_client_stats.phpt834 $file = tempnam(sys_get_temp_dir(), 'mysqli_test');
H A Dlocal_infile_tools.inc52 $file = tempnam(sys_get_temp_dir(), 'mysqli_test');
H A Dconnect.inc41 $temp_file = tempnam(md5(uniqid(rand(), TRUE)), '');
/PHP-7.4/ext/pdo_mysql/tests/
H A Dconfig.inc43 $temp_file = tempnam(md5(uniqid(rand(), TRUE)), '');
/PHP-7.4/ext/standard/tests/streams/
H A Dbug78902.phpt9 $tmp_file_name = tempnam(sys_get_temp_dir(), 'test_');
H A Dbug54946.phpt5 $filename = tempnam(__DIR__, "phpbug");
14 $filename = tempnam(__DIR__, "phpbug2");
24 $filename = tempnam(__DIR__, "phpbug3");
/PHP-7.4/ext/pcntl/tests/
H A Dpcntl_exec_3.phpt8 $file = tempnam(sys_get_temp_dir(),"php");
/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');
H A Dbug74720_1.phpt60 $tmpPath = tempnam(sys_get_temp_dir(), 'test');
65 $outPath = 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');
H A Dbug74903.phpt64 $tmpFileIn = tempnam(sys_get_temp_dir(), 'test');
65 $tmpFileOut = tempnam(sys_get_temp_dir(), 'test');

Completed in 132 milliseconds

1234