Home
last modified time | relevance | path

Searched refs:touch (Results 1 – 25 of 130) sorted by relevance

123456

/php-src/tests/security/
H A Dopen_basedir_touch.phpt9 test_open_basedir_before("touch");
11 var_dump(touch("../bad"));
12 var_dump(touch("../bad/bad.txt"));
13 var_dump(touch(".."));
14 var_dump(touch("../"));
15 var_dump(touch("/"));
16 var_dump(touch("../bad/."));
18 var_dump(touch("./../."));
21 var_dump(touch("./ok.txt"));
22 var_dump(touch("ok.txt"));
[all …]
/php-src/ext/standard/tests/file/
H A Dtouch_basic-win32.phpt2 Test touch() function : basic functionality
15 $filename = __DIR__."/touch.dat";
17 echo "\n--- testing touch creates a file ---\n";
22 var_dump( touch($filename) );
32 touch($filename);
41 touch($filename);
58 // Calling touch() with all possible arguments
60 var_dump( touch($filename, $time, $atime) );
72 *** Testing touch() : basic functionality ***
74 --- testing touch creates a file ---
[all …]
H A Dtouch_basic-win32-mb.phpt2 Test touch() function : basic functionality
13 echo "*** Testing touch() : basic functionality ***\n";
17 echo "\n--- testing touch creates a file ---\n";
22 var_dump( touch($filename) );
32 touch($filename);
41 touch($filename);
58 // Calling touch() with all possible arguments
60 var_dump( touch($filename, $time, $atime) );
72 *** Testing touch() : basic functionality ***
74 --- testing touch creates a file ---
[all …]
H A Dtouch.phpt2 touch() tests
14 $filename = __DIR__."/touch.dat";
16 var_dump(touch($filename));
19 var_dump(touch($filename, 101));
23 var_dump(touch($filename, -1));
27 var_dump(touch($filename, 100, 100));
31 var_dump(touch($filename, 100, -100));
34 var_dump(touch("/no/such/file/or/directory"));
39 touch("/no/such/file/or/directory", null, 1599492068);
58 Warning: touch(): Unable to create file /no/such/file/or/directory because %s in %s on line %d
[all …]
H A Dtouch_basic.phpt2 Test touch() function : basic functionality
14 echo "*** Testing touch() : basic functionality ***\n";
18 echo "\n--- testing touch creates a file ---\n";
23 var_dump( touch($filename) );
33 touch($filename);
42 touch($filename);
59 // Calling touch() with all possible arguments
61 var_dump( touch($filename, $time, $atime) );
73 *** Testing touch() : basic functionality ***
75 --- testing touch creates a file ---
[all …]
H A Duserstreams_007.phpt25 touch("test://testdir/touch");
26 touch("test://testdir/touch", 1);
27 touch("test://testdir/touch", 1, 2);
36 metadata: test://testdir/touch, 1
38 metadata: test://testdir/touch, 1
40 metadata: test://testdir/touch, 1
H A D005_variation2-win32.phpt2 Test fileatime(), filemtime(), filectime() & touch() functions : usage variation
29 echo "*** Testing fileattime(), filemtime(), filectime() & touch() : usage variations ***\n";
35 echo "\n*** testing touch ***\n";
36 var_dump(touch(false));
37 var_dump(touch(''));
40 var_dump(touch(' '));
41 var_dump(touch('|'));
47 *** Testing fileattime(), filemtime(), filectime() & touch() : usage variations ***
82 *** testing touch ***
86 Warning: touch(): %s in %s on line %d
[all …]
H A D005_variation2.phpt2 Test fileatime(), filemtime(), filectime() & touch() functions : usage variation
29 echo "*** Testing fileattime(), filemtime(), filectime() & touch() : usage variations ***\n";
30 echo "\n*** testing touch ***\n";
36 $b = touch(false);
37 $c = touch('');
38 $d = touch(' ');
39 $e = touch('|');
60 *** Testing fileattime(), filemtime(), filectime() & touch() : usage variations ***
62 *** testing touch ***
H A Dlstat_stat_variation4.phpt2 Test lstat() and stat() functions: usage variations - effects of touch() on file
9 /* test the effects of touch() on stats of file */
21 // touch a file check stat, there should be difference in atime
22 echo "*** Testing stat() for file after using touch() on the file ***\n";
27 var_dump( touch($file_name) );
48 *** Testing stat() for file after using touch() on the file ***
H A Dlstat_stat_variation5.phpt2 Test lstat() and stat() functions: usage variations - effects of touch() on dir
12 /* test the effects of touch() on stats of dir */
24 // touch a directory and check stat, there should be difference in atime
25 echo "*** Testing stat() for directory after using touch() on the directory ***\n";
30 var_dump( touch($dir_name) );
51 *** Testing stat() for directory after using touch() on the directory ***
H A Dtouch_error.phpt2 touch() error tests
8 var_dump(touch("/no/such/file/or/directory"));
12 Warning: touch(): Unable to create file /no/such/file/or/directory because No such file or director…
H A Dtouch_variation2.phpt2 touch() - ensure touch does not delete existing file.
14 var_dump(touch($filename, 101));
H A Dlstat_stat_variation6.phpt2 Test lstat() and stat() functions: usage variations - effects of touch() on link
21 /* test the effects of touch() on stats of link */
35 // touch a link, check stat, there should be difference in atime
36 echo "*** Testing lstat() for link after using touch() on the link ***\n";
43 var_dump( touch($link_name) );
66 *** Testing lstat() for link after using touch() on the link ***
H A Dtouch_variation1.phpt2 touch() with times
16 var_dump(touch($filename, 101));
23 var_dump(touch($filename, 100, 102));
H A Dbug45985.phpt2 Bug #35740 (touch() opened file raises a warning)
8 touch($file);
H A Dtouch_variation5.phpt2 Test touch() function : variation: various valid and invalid paths
46 echo "*** Testing touch() : variation ***\n";
70 $res = touch($path);
85 echo "FAILED: $path - touch returned true, nothing there\n";
92 echo "FAILED: $path - touch returned false, something there\n";
130 $res = touch($path,0,0);
148 *** Testing touch() : variation ***
162 Warning: touch(): Unable to create file BADDIR/aSubDirOrFile because %s in %s on line %d
171 Warning: touch(): Unable to create file /%s/BADDIR/aSubDirOrFile because %s in %s on line %d
174 Warning: touch(): Unable to create file touchVar5.tmp/aSubDirOrFile/ because %s in %s on line %d
[all …]
H A Dtouch_variation5-win32.phpt2 Test touch() function : variation: various valid and invalid paths
47 echo "*** Testing touch() : variation ***\n";
71 $res = touch($path);
86 echo "FAILED: $path - touch returned true, nothing there\n";
93 echo "FAILED: $path - touch returned false, something there\n";
131 $res = touch($path,0,0);
149 *** Testing touch() : variation ***
163 Warning: touch(): Unable to create file BADDIR/aSubDirOrFile because %s in %s on line %d
172 Warning: touch(): Unable to create file %s/BADDIR/aSubDirOrFile because %s in %s on line %d
175 Warning: touch(): Unable to create file touchVar5.tmp/aSubDirOrFile/ because %s in %s on line %d
[all …]
H A Dtouch_variation6-win32.phpt2 Test touch() function : variation: various valid and invalid paths
52 echo "*** Testing touch() : variation ***\n";
76 $res = touch($path);
91 echo "FAILED: $path - touch returned true, nothing there\n";
98 echo "FAILED: $path - touch returned false, something there\n";
136 $res = touch($path,0,0);
154 *** Testing touch() : variation ***
168 Warning: touch(): Unable to create file BADDIR\aSubDirOrFile because %s in %s on line %d
177 Warning: touch(): Unable to create file %s\BADDIR\aSubDirOrFile because %s in %s on line %d
180 Warning: touch(): Unable to create file touchVar5.tmp\aSubDirOrFile\ because %s in %s on line %d
[all …]
H A D005_error.phpt2 Test fileatime(), filemtime(), filectime() & touch() functions : error conditions
13 var_dump( touch("/no/such/file/or/dir", 10) );
30 Warning: touch(): Unable to create file /no/such/file/or/dir because No such file or directory in %…
H A Dis_file_variation1.phpt6 and the file created by touch() */
33 /* created by touch() */
34 touch($file_path."/is_file_variation1.tmp");
/php-src/ext/spl/tests/
H A Ddit_004.phpt7 touch($dir . '/file1');
8 touch($dir . '/file2');
9 touch($dir . '/file3');
H A Dbug65069.phpt14 touch("$dirname/wonder12345");
15 touch("$dirname/wonder.txt");
16 touch("$dirname/file.text");
H A DRecursiveDirectoryIterator_getSubPathname_basic.phpt13 touch($targetDir . DIRECTORY_SEPARATOR . 'getSubPathname_test_2.tmp');
14 touch(__DIR__ . DIRECTORY_SEPARATOR . $depth0 . DIRECTORY_SEPARATOR . $depth1 . DIRECTORY_SEPARATOR…
15 touch(__DIR__ . DIRECTORY_SEPARATOR . $depth0 . DIRECTORY_SEPARATOR . 'getSubPathname_test_1.tmp');
H A Dbug66405.phpt9 touch($td . '/file1.txt');
10 touch($td . '/file2.md');
12 touch($td . '/testsubdir/file3.csv');
H A Dbug51068.phpt5 touch('bug.51068');
7 touch('bug.51068.dir/lvl2.bug.51068');

Completed in 21 milliseconds

123456