File tree 1 file changed +17
-5
lines changed
1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,17 @@ function stat_fn( $filename ) {
49
49
50
50
echo "*** Testing fileattime(), filemtime(), filectime() & touch() : usage variations *** \n" ;
51
51
echo "\n*** testing touch *** \n" ;
52
- var_dump (touch (NULL ));
53
- var_dump (touch (false ));
54
- var_dump (touch ('' ));
55
- var_dump (touch (' ' ));
56
- var_dump (touch ('| ' ));
52
+ $ a = touch (NULL );
53
+ $ b = touch (false );
54
+ $ c = touch ('' );
55
+ $ d = touch (' ' );
56
+ $ e = touch ('| ' );
57
+
58
+ var_dump ($ a );
59
+ var_dump ($ b );
60
+ var_dump ($ c );
61
+ var_dump ($ d );
62
+ var_dump ($ e );
57
63
58
64
echo "\n*** testing file info *** " ;
59
65
stat_fn (NULL );
@@ -71,6 +77,12 @@ echo "Done";
71
77
*** Testing fileattime(), filemtime(), filectime() & touch() : usage variations ***
72
78
73
79
*** testing touch ***
80
+
81
+ Warning: touch(): Unable to create file because No such file or directory in %s on line %d
82
+
83
+ Warning: touch(): Unable to create file because No such file or directory in %s on line %d
84
+
85
+ Warning: touch(): Unable to create file because No such file or directory in %s on line %d
74
86
bool(false)
75
87
bool(false)
76
88
bool(false)
You can’t perform that action at this time.
0 commit comments