Home
last modified time | relevance | path

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

12345

/PHP-7.2/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-7.2/ext/standard/tests/file/
H A Dtouch_basic-win32.phpt2 Test touch() function : basic functionality
21 $filename = dirname(__FILE__)."/touch.dat";
23 echo "\n--- testing touch creates a file ---\n";
28 var_dump( touch($filename) );
38 touch($filename);
47 touch($filename);
64 // Calling touch() with all possible arguments
66 var_dump( touch($filename, $time, $atime) );
78 *** Testing touch() : basic functionality ***
80 --- testing touch creates a file ---
[all …]
H A Dtouch_basic-win32-mb.phpt2 Test touch() function : basic functionality
23 echo "\n--- testing touch creates a file ---\n";
28 var_dump( touch($filename) );
38 touch($filename);
47 touch($filename);
64 // Calling touch() with all possible arguments
66 var_dump( touch($filename, $time, $atime) );
78 *** Testing touch() : basic functionality ***
80 --- testing touch creates a file ---
83 --- testing touch doesn't alter file contents ---
[all …]
H A Dtouch_basic.phpt2 Test touch() function : basic functionality
24 echo "\n--- testing touch creates a file ---\n";
29 var_dump( touch($filename) );
39 touch($filename);
48 touch($filename);
65 // Calling touch() with all possible arguments
67 var_dump( touch($filename, $time, $atime) );
79 *** Testing touch() : basic functionality ***
81 --- testing touch creates a file ---
84 --- testing touch doesn't alter file contents ---
[all …]
H A Dtouch.phpt2 touch() tests
14 $filename = dirname(__FILE__)."/touch.dat";
16 var_dump(touch());
17 var_dump(touch($filename));
20 var_dump(touch($filename, 101));
24 var_dump(touch($filename, -1));
28 var_dump(touch($filename, 100, 100));
32 var_dump(touch($filename, 100, -100));
35 var_dump(touch("/no/such/file/or/directory"));
42 Warning: touch() expects at least 1 parameter, 0 given in %s on line %d
[all …]
H A Duserstreams_007.phpt24 touch("test://testdir/touch");
25 touch("test://testdir/touch", 1);
26 touch("test://testdir/touch", 1, 2);
34 metadata: test://testdir/touch, 1
36 metadata: test://testdir/touch, 1
38 metadata: test://testdir/touch, 1
H A Dtouch_error.phpt2 touch() error tests
8 var_dump(touch());
9 var_dump(touch(1, 2, 3, 4));
10 var_dump(touch("/no/such/file/or/directory"));
14 Warning: touch() expects at least 1 parameter, 0 given in %s on line %d
17 Warning: touch() expects at most 3 parameters, 4 given in %s on line %d
20 Warning: touch(): Unable to create file /no/such/file/or/directory because No such file or director…
H A Dtouch_variation3-win32-mb.phpt2 Test touch() function : usage variation - different types for time
14 /* Prototype : bool touch(string filename [, int time [, int atime]])
20 echo "*** Testing touch() : usage variation ***\n";
109 var_dump( touch($filename, $value, $atime) );
117 *** Testing touch() : usage variation ***
129 Error: 2 - touch() expects parameter 2 to be integer, array given, %s(%d)
133 Error: 2 - touch() expects parameter 2 to be integer, array given, %s(%d)
137 Error: 2 - touch() expects parameter 2 to be integer, array given, %s(%d)
141 Error: 2 - touch() expects parameter 2 to be integer, array given, %s(%d)
163 Error: 2 - touch() expects parameter 2 to be integer, string given, %s(%d)
[all …]
H A Dtouch_variation3-win32.phpt2 Test touch() function : usage variation - different types for time
14 /* Prototype : bool touch(string filename [, int time [, int atime]])
20 echo "*** Testing touch() : usage variation ***\n";
109 var_dump( touch($filename, $value, $atime) );
117 *** Testing touch() : usage variation ***
129 Error: 2 - touch() expects parameter 2 to be integer, array given, %s(%d)
133 Error: 2 - touch() expects parameter 2 to be integer, array given, %s(%d)
137 Error: 2 - touch() expects parameter 2 to be integer, array given, %s(%d)
141 Error: 2 - touch() expects parameter 2 to be integer, array given, %s(%d)
163 Error: 2 - touch() expects parameter 2 to be integer, string given, %s(%d)
[all …]
H A Dtouch_variation3.phpt2 Test touch() function : usage variation - different types for time
14 /* Prototype : bool touch(string filename [, int time [, int atime]])
20 echo "*** Testing touch() : usage variation ***\n";
109 var_dump( touch($filename, $value, $atime) );
117 *** Testing touch() : usage variation ***
129 Error: 2 - touch() expects parameter 2 to be integer, array given, %s(%d)
133 Error: 2 - touch() expects parameter 2 to be integer, array given, %s(%d)
137 Error: 2 - touch() expects parameter 2 to be integer, array given, %s(%d)
141 Error: 2 - touch() expects parameter 2 to be integer, array given, %s(%d)
163 Error: 2 - touch() expects parameter 2 to be integer, string given, %s(%d)
[all …]
H A Dtouch_variation4-win32.phpt2 Test touch() function : usage variation - different types for atime
14 /* Prototype : bool touch(string filename [, int time [, int atime]])
20 echo "*** Testing touch() : usage variation ***\n";
109 var_dump( touch($filename, $time, $value) );
117 *** Testing touch() : usage variation ***
129 Error: 2 - touch() expects parameter 3 to be integer, array given, %s(%d)
133 Error: 2 - touch() expects parameter 3 to be integer, array given, %s(%d)
137 Error: 2 - touch() expects parameter 3 to be integer, array given, %s(%d)
141 Error: 2 - touch() expects parameter 3 to be integer, array given, %s(%d)
163 Error: 2 - touch() expects parameter 3 to be integer, string given, %s(%d)
[all …]
H A Dtouch_variation4.phpt2 Test touch() function : usage variation - different types for atime
14 /* Prototype : bool touch(string filename [, int time [, int atime]])
20 echo "*** Testing touch() : usage variation ***\n";
109 var_dump( touch($filename, $time, $value) );
117 *** Testing touch() : usage variation ***
129 Error: 2 - touch() expects parameter 3 to be integer, array given, %s(%d)
133 Error: 2 - touch() expects parameter 3 to be integer, array given, %s(%d)
137 Error: 2 - touch() expects parameter 3 to be integer, array given, %s(%d)
141 Error: 2 - touch() expects parameter 3 to be integer, array given, %s(%d)
163 Error: 2 - touch() expects parameter 3 to be integer, string given, %s(%d)
[all …]
H A D005_variation2-win32.phpt2 Test fileatime(), filemtime(), filectime() & touch() functions : usage variation
26 Prototype: bool touch ( string $filename [, int $time [, int $atime]] );
57 echo "\n*** testing touch ***";
58 var_dump(touch(NULL));
59 var_dump(touch(false));
60 var_dump(touch(''));
63 var_dump(touch(' '));
64 var_dump(touch('|'));
110 *** testing touch ***bool(false)
114 Warning: touch(): %s in %s on line %d
[all …]
H A D005_variation2.phpt2 Test fileatime(), filemtime(), filectime() & touch() functions : usage variation
26 Prototype: bool touch ( string $filename [, int $time [, int $atime]] );
50 echo "*** Testing fileattime(), filemtime(), filectime() & touch() : usage variations ***\n";
51 echo "\n*** testing touch ***\n";
52 $a = touch(NULL);
53 $b = touch(false);
54 $c = touch('');
55 $d = touch(' ');
56 $e = touch('|');
77 *** Testing fileattime(), filemtime(), filectime() & touch() : usage variations ***
[all …]
H A Dtouch_variation1.phpt2 touch() with times
14 $filename = dirname(__FILE__)."/touch.dat";
17 var_dump(touch($filename, 101));
24 var_dump(touch($filename, 100, 102));
H A Dlstat_stat_variation4.phpt2 Test lstat() and stat() functions: usage variations - effects of touch() on file
19 /* test the effects of touch() on stats of file */
31 // touch a file check stat, there should be difference in atime
32 echo "*** Testing stat() for file after using touch() on the file ***\n";
37 var_dump( touch($file_name) );
58 *** 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
20 /* test the effects of touch() on stats of dir */
32 // touch a directory and check stat, there should be difference in atime
33 echo "*** Testing stat() for directory after using touch() on the directory ***\n";
38 var_dump( touch($dir_name) );
59 *** Testing stat() for directory after using touch() on the directory ***
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
27 /* test the effects of touch() on stats of link */
41 // touch a link, check stat, there should be difference in atime
42 echo "*** Testing lstat() for link after using touch() on the link ***\n";
49 var_dump( touch($link_name) );
72 *** Testing lstat() for link after using touch() on the link ***
H A D005_error.phpt2 Test fileatime(), filemtime(), filectime() & touch() functions : error conditions
18 Prototype: bool touch ( string $filename [, int $time [, int $atime]] );
30 var_dump( touch("/no/such/file/or/dir", 10) );
36 var_dump( touch(__FILE__, 10, 100, 123) );
42 var_dump( touch() );
49 var_dump( touch("/no/such/file/or/dir", 10, 100, 123) );
55 var_dump( touch(__FILE__, 10, 100, 123) );
84 Warning: touch() expects at most 3 parameters, 4 given in %s on line %d
97 Warning: touch() expects at least 1 parameter, 0 given in %s on line %d
110 Warning: touch() expects at most 3 parameters, 4 given in %s on line %d
[all …]
H A Dtouch_variation5.phpt2 Test touch() function : variation: various valid and invalid paths
13 /* Prototype : bool touch(string filename [, int time [, int atime]])
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);
155 *** Testing touch() : variation ***
169 Warning: touch(): Unable to create file BADDIR/aSubDirOrFile because %s in %s on line %d
178 Warning: touch(): Unable to create file /%s/BADDIR/aSubDirOrFile because %s in %s on line %d
[all …]
H A Dtouch_variation5-win32.phpt2 Test touch() function : variation: various valid and invalid paths
12 /* Prototype : bool touch(string filename [, int time [, int atime]])
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);
155 *** Testing touch() : variation ***
166 Warning: touch(): Unable to create file touchVar5.tmp/../BADDIR/aSubDirOrFile because %s in %s on l…
169 Warning: touch(): Unable to create file BADDIR/aSubDirOrFile because %s in %s on line %d
[all …]
H A Dtouch_variation6-win32.phpt2 Test touch() function : variation: various valid and invalid paths
13 /* Prototype : bool touch(string filename [, int time [, int atime]])
58 echo "*** Testing touch() : variation ***\n";
82 $res = touch($path);
97 echo "FAILED: $path - touch returned true, nothing there\n";
104 echo "FAILED: $path - touch returned false, something there\n";
142 $res = touch($path,0,0);
161 *** Testing touch() : variation ***
172 Warning: touch(): Unable to create file touchVar5.tmp\..\BADDIR\aSubDirOrFile because %s in %s on l…
175 Warning: touch(): Unable to create file BADDIR\aSubDirOrFile because %s in %s on line %d
[all …]
H A Dbug45985.phpt2 Bug #35740 (touch() opened file raises a warning)
8 touch($file);
/PHP-7.2/ext/bcmath/libbcmath/
H A Dmissing65 touch aclocal.m4
74 touch configure
83 touch config.h.in
103 touch y.tab.c
119 touch $file

Completed in 29 milliseconds

12345