Home
last modified time | relevance | path

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

123

/PHP-5.6/ext/standard/tests/file/
H A Dtempnam_error.phpt2 Test tempnam() function: error conditions
5 /* Prototype: string tempnam ( string $dir, string $prefix );
9 echo "*** Testing tempnam() error conditions ***\n";
14 var_dump( tempnam("$file_path", "tempnam_error.tmp", TRUE) );
17 var_dump( tempnam("tempnam_error") ); //One Valid arg
18 var_dump( tempnam("$file_path") ); //One Valid arg
19 var_dump( tempnam("") ); //Empty string
20 var_dump( tempnam(NULL) ); //NULL as arg
21 var_dump( tempnam() ); //Zero args
26 *** Testing tempnam() error conditions ***
[all …]
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-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_variation6.tmp");
46 *** Test tempnam() function: by passing an existing filename as prefix ***
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 Dbug52624.phpt2 Bug #52624 (tempnam() by-pass open_basedir with inexistent directory)
8 echo tempnam("directory_that_not_exists", "prefix_");
12 Warning: tempnam(): open_basedir restriction in effect. File(%s) is not within the allowed path(s):…
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-win32.phpt2 Test tempnam() function: usage variations - obscure prefixes
10 /* Prototype: string tempnam ( string $dir, string $prefix );
16 echo "*** Testing tempnam() with obscure prefixes ***\n";
62 $file_name = tempnam($file_path, $names_arr[$i]);
90 *** Testing tempnam() with obscure prefixes ***
106 Warning: tempnam() expects parameter 2 to be a valid path, string given in %stempnam_variation3-win…
111 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
10 /* Prototype: string tempnam ( string $dir, string $prefix );
16 echo "*** Testing tempnam() with obscure prefixes ***\n";
40 $file_name = tempnam("$file_path", $names_arr[$i]);
77 *** Testing tempnam() with obscure prefixes ***
104 Warning: tempnam() expects parameter 2 to be a valid path, string given in %s on line %d
110 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
10 /* Prototype: string tempnam ( string $dir, string $prefix );
17 echo "*** Testing tempnam() with invalid/non-existing directory names ***\n";
37 $file_name = tempnam($names_arr[$i], "tempnam_variation3.tmp");
66 *** Testing tempnam() with invalid/non-existing directory names ***
93 Warning: tempnam() expects parameter 1 to be a valid path, string given in %stempnam_variation7-win…
99 Warning: tempnam() expects parameter 1 to be a valid path, array given in %s on line %d
H A Dtempnam_variation7.phpt2 Test tempnam() function: usage variations - invalid/non-existing dir
10 /* Prototype: string tempnam ( string $dir, string $prefix );
17 echo "*** Testing tempnam() with invalid/non-existing directory names ***\n";
38 $file_name = tempnam($names_arr[$i], "tempnam_variation3.tmp");
71 *** Testing tempnam() with invalid/non-existing directory names ***
98 Warning: tempnam() expects parameter 1 to be a valid path, string given in %s on line %d
104 Warning: tempnam() expects parameter 1 to be a valid path, array given in %s on line %d
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 Dbug65701.phpt2 Test for bug #65701: copy() doesn't work when destination filename is created by tempnam()
12 $dst = tempnam($file_path, 'dstbug65701_file.txt');
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_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_variation2.tmp");
90 *** Testing tempnam() with absolute and relative paths ***
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 ***
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 ***
H A Dbug37864.phpt5 $tmpfname = tempnam(sys_get_temp_dir(), "emptyfile");
H A Dbug27508.phpt49 $tn = (binary) tempnam($tmp_dir, 'foo');
51 die("tempnam failed");
/PHP-5.6/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-5.6/ext/standard/tests/streams/
H A Dbug54946.phpt5 $filename = tempnam(__DIR__, "phpbug");
14 $filename = tempnam(__DIR__, "phpbug2");
24 $filename = tempnam(__DIR__, "phpbug3");
/PHP-5.6/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');
H A Dbug48207.phpt27 $tempname = tempnam(sys_get_temp_dir(), 'CURL_HANDLE');
35 $tempfile = tempnam(sys_get_temp_dir(), 'CURL_FILE_HANDLE');
/PHP-5.6/ext/ftp/tests/
H A Dftp_get_basic.phpt19 $tmpfname = tempnam(dirname(__FILE__), "ftp_test");
25 $tmpfname = tempnam(dirname(__FILE__), "ftp_test");

Completed in 35 milliseconds

123