/PHP-7.4/ext/standard/ |
H A D | file.c | 817 PHP_FUNCTION(tempnam) in PHP_FUNCTION() argument
|
H A D | basic_functions.c | 3147 PHP_FE(tempnam, arginfo_tempnam)
|
H A D | file.h | 27 PHP_FUNCTION(tempnam);
|
/PHP-7.4/tests/security/ |
H A D | open_basedir_tempnam.phpt | 9 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 D | bug42560.phpt | 2 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 D | tempnam_variation5-win32.phpt | 2 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 D | tempnam_variation8-win32.phpt | 2 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 D | tempnam_variation1.phpt | 2 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 D | tempnam_variation4-1.phpt | 2 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 D | tempnam_variation4-0.phpt | 2 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 D | tempnam_variation3-win32.phpt | 2 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 D | tempnam_variation3.phpt | 2 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 D | tempnam_variation7-win32.phpt | 2 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 D | tempnam_variation7.phpt | 2 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 D | mysqli_get_client_stats.phpt | 834 $file = tempnam(sys_get_temp_dir(), 'mysqli_test');
|
H A D | local_infile_tools.inc | 52 $file = tempnam(sys_get_temp_dir(), 'mysqli_test');
|
H A D | connect.inc | 41 $temp_file = tempnam(md5(uniqid(rand(), TRUE)), '');
|
/PHP-7.4/ext/pdo_mysql/tests/ |
H A D | config.inc | 43 $temp_file = tempnam(md5(uniqid(rand(), TRUE)), '');
|
/PHP-7.4/ext/standard/tests/streams/ |
H A D | bug78902.phpt | 9 $tmp_file_name = tempnam(sys_get_temp_dir(), 'test_');
|
H A D | bug54946.phpt | 5 $filename = tempnam(__DIR__, "phpbug"); 14 $filename = tempnam(__DIR__, "phpbug2"); 24 $filename = tempnam(__DIR__, "phpbug3");
|
/PHP-7.4/ext/pcntl/tests/ |
H A D | pcntl_exec_3.phpt | 8 $file = tempnam(sys_get_temp_dir(),"php");
|
/PHP-7.4/ext/openssl/tests/ |
H A D | bug74720_0.phpt | 64 $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 D | bug74720_1.phpt | 60 $tmpPath = tempnam(sys_get_temp_dir(), 'test'); 65 $outPath = tempnam(sys_get_temp_dir(), 'test');
|
H A D | bug74798.phpt | 62 $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 D | bug74903.phpt | 64 $tmpFileIn = tempnam(sys_get_temp_dir(), 'test'); 65 $tmpFileOut = tempnam(sys_get_temp_dir(), 'test');
|