Lines Matching refs:file
2 Test file() function : first parameter variation
5 /* Prototype : array file(string filename [, int flags[, resource context]])
6 * Description: Read entire file into an array
7 * Source code: ext/standard/file.c
11 echo "*** Testing file() : usage variation ***\n";
103 var_dump( file($value, $flags, $context) );
109 *** Testing file() : usage variation ***
112 Error: 2 - file(0): failed to open stream: No such file or directory, %s(%d)
116 Error: 2 - file(1): failed to open stream: No such file or directory, %s(%d)
120 Error: 2 - file(12345): failed to open stream: No such file or directory, %s(%d)
124 Error: 2 - file(-2345): failed to open stream: No such file or directory, %s(%d)
128 Error: 2 - file(10.5): failed to open stream: No such file or directory, %s(%d)
132 Error: 2 - file(-10.5): failed to open stream: No such file or directory, %s(%d)
136 Error: 2 - file(123456789000): failed to open stream: No such file or directory, %s(%d)
140 Error: 2 - file(-123456789000): failed to open stream: No such file or directory, %s(%d)
144 Error: 2 - file(0.5): failed to open stream: No such file or directory, %s(%d)
148 Error: 2 - file() expects parameter 1 to be a valid path, array given, %s(%d)
152 Error: 2 - file() expects parameter 1 to be a valid path, array given, %s(%d)
156 Error: 2 - file() expects parameter 1 to be a valid path, array given, %s(%d)
160 Error: 2 - file() expects parameter 1 to be a valid path, array given, %s(%d)
164 Error: 2 - file(): Filename cannot be empty, %s(%d)
168 Error: 2 - file(): Filename cannot be empty, %s(%d)
172 Error: 2 - file(1): failed to open stream: No such file or directory, %s(%d)
176 Error: 2 - file(): Filename cannot be empty, %s(%d)
180 Error: 2 - file(1): failed to open stream: No such file or directory, %s(%d)
184 Error: 2 - file(): Filename cannot be empty, %s(%d)
188 Error: 2 - file(): Filename cannot be empty, %s(%d)
192 Error: 2 - file(): Filename cannot be empty, %s(%d)
196 Error: 2 - file(Class A object): failed to open stream: %s, %s(%d)
200 Error: 2 - file() expects parameter 1 to be a valid path, object given, %s(%d)
204 Error: 2 - file(): Filename cannot be empty, %s(%d)
208 Error: 2 - file(): Filename cannot be empty, %s(%d)