Home
last modified time | relevance | path

Searched refs:file (Results 51 – 75 of 1798) sorted by relevance

12345678910>>...72

/PHP-7.2/ext/standard/tests/file/
H A Dfputcsv_variation12.phpt63 //close the file
69 //delete file
79 -- file opened in r+ --
86 -- file opened in r+b --
100 -- file opened in a+ --
121 -- file opened in w+ --
142 -- file opened in x+ --
163 -- file opened in r+ --
184 -- file opened in a+ --
205 -- file opened in w+ --
[all …]
H A Dfputcsv_variation5.phpt62 //close the file
68 //delete file
78 -- file opened in r+ --
85 -- file opened in r+b --
99 -- file opened in a+ --
120 -- file opened in w+ --
141 -- file opened in x+ --
162 -- file opened in r+ --
183 -- file opened in a+ --
204 -- file opened in w+ --
[all …]
H A Dfputcsv_variation1.phpt62 //close the file
68 //delete file
78 -- file opened in r+ --
85 -- file opened in r+b --
99 -- file opened in a+ --
120 -- file opened in w+ --
141 -- file opened in x+ --
162 -- file opened in r+ --
183 -- file opened in a+ --
204 -- file opened in w+ --
[all …]
H A D007_variation4.phpt9 Description: Opens file or URL.
20 checking for the file truncation when trying to open an existing file in "w+" mode,
24 require($file_path."/file.inc");
31 $file_handle = fopen($file, "w+"); //opening the file "w+" mode
34 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
43 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "w+…
45 fclose( fopen($file, "w+") ); //Opening the existing data file again in "w+" mode
46 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "w+"…
49 unlink($file); //Deleting the file
50 fclose( fopen($file, "w+") ); //Opening the non-existing file in "w+" mode, which will be created
[all …]
H A Dftruncate_variation3-win32.phpt13 Description: Truncates a file to a given length
16 // include common file related test functions
17 include ("file.inc");
21 /* test ftruncate with file opened in different modes */
35 // create 1 file with some contents
38 // fopen the file using the $file_modes
43 // fopen the file using the $file_modes
47 echo "Error: failed to open file $filename!\n";
51 rewind($file_handle); // file pointer to 0
65 // delete file
[all …]
H A Dftruncate_variation3.phpt13 Description: Truncates a file to a given length
16 // include common file related test functions
17 include ("file.inc");
21 /* test ftruncate with file opened in different modes */
35 // create 1 file with some contents
38 // fopen the file using the $file_modes
43 // fopen the file using the $file_modes
47 echo "Error: failed to open file $filename!\n";
51 rewind($file_handle); // file pointer to 0
65 // delete file
[all …]
H A D007_variation11-win32.phpt14 Description: Opens file or URL.
25 checking for the file truncation when trying to open an existing file in "wt" mode,
29 require($file_path."/file.inc");
36 $file_handle = fopen($file, "wt"); //opening the file "wt" mode
39 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
48 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "wt…
50 fclose( fopen($file, "wt") ); //Opening the existing data file again in "wt" mode
51 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "wt"…
54 unlink($file); //Deleting the file
55 fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created
[all …]
H A D007_variation19.phpt9 Description: Opens file or URL.
20 checking for the file truncation when trying to open an existing file in "wb" mode,
24 require($file_path."/file.inc");
31 $file_handle = fopen($file, "wb"); //opening the file "wb" mode
34 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
43 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "wb…
45 fclose( fopen($file, "wb") ); //Opening the existing data file again in "wb" mode
46 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "wb"…
49 unlink($file); //Deleting the file
50 fclose( fopen($file, "wb") ); //Opening the non-existing file in "wb" mode, which will be created
[all …]
H A D007_variation3.phpt9 Description: Opens file or URL.
20 checking for the file truncation when trying to open an existing file in "w" mode,
24 require($file_path."/file.inc");
31 $file_handle = fopen($file, "w"); //opening the file "w" mode
34 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
43 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "w"…
45 fclose( fopen($file, "w") ); //Opening the existing data file again in "w" mode
46 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "w" …
49 unlink($file); //Deleting the file
50 fclose( fopen($file, "w") ); //Opening the non-existing file in "w" mode, which will be created
[all …]
H A Dftruncate_variation5-win32.phpt13 Description: Truncates a file to a given length
16 // include common file related test functions
17 include ("file.inc");
21 /* test ftruncate with file opened in different modes */
35 // create 1 file with some contents
38 // fopen the file using the $file_modes
43 // fopen the file using the $file_modes
47 echo "Error: failed to open file $filename!\n";
51 rewind($file_handle); // file pointer to 0
77 -- Testing ftruncate() with file opening using r mode --
[all …]
H A Dftruncate_variation5.phpt13 Description: Truncates a file to a given length
16 // include common file related test functions
17 include ("file.inc");
21 /* test ftruncate with file opened in different modes */
35 // create 1 file with some contents
38 // fopen the file using the $file_modes
43 // fopen the file using the $file_modes
47 echo "Error: failed to open file $filename!\n";
51 rewind($file_handle); // file pointer to 0
77 -- Testing ftruncate() with file opening using r mode --
[all …]
H A D007_variation11-win32-mb.phpt14 Description: Opens file or URL.
25 checking for the file truncation when trying to open an existing file in "wt" mode,
29 require($file_path."/file.inc");
36 $file_handle = fopen($file, "wt"); //opening the file "wt" mode
48 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "wt…
50 fclose( fopen($file, "wt") ); //Opening the existing data file again in "wt" mode
51 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "wt"…
54 unlink($file); //Deleting the file
55 fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created
56 var_dump( file_exists($file) ); //Check for the existence of file
[all …]
H A Dtempnam_variation4-0.phpt21 Description: Create file with unique file name.
24 /* Trying to create the file in a dir with permissions from 0000 to 0350,
63 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o…
66 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o…
69 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o…
72 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o…
75 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o…
78 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o…
81 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o…
84 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o…
[all …]
H A Dtempnam_variation4-1.phpt21 Description: Create file with unique file name.
24 /* Trying to create the file in a dir with permissions from 0351 to 0777,
63 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o…
66 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o…
69 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o…
72 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o…
75 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o…
78 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o…
81 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o…
84 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o…
[all …]
H A Dfputcsv_variation10.phpt56 //close the file
62 //delete file
72 -- file opened in r+ --
79 -- file opened in r+b --
86 -- file opened in r+t --
93 -- file opened in a+ --
114 -- file opened in w+ --
135 -- file opened in x+ --
156 -- file opened in r+ --
180 -- file opened in a+ --
[all …]
H A Dcopy_variation3-win32.phpt26 /* array of destination file names */
33 " ", //blank space as file name
50 echo "Existence of destination file => ";
54 echo "Destination file name => ";
58 echo "Size of source file => ";
62 echo "Size of destination file => ";
84 Existence of destination file => bool(true)
86 Size of source file => int(1500)
87 Size of destination file => int(1500)
93 Size of source file => int(1500)
[all …]
H A Dcopy_variation4.phpt65 echo "Size of source file => ";
96 Destination file name => %s/
97 Size of source file => int(1500)
108 Destination file name => %s/
109 Size of source file => int(1500)
124 Destination file name => %s/�
126 Size of destination file =>
138 Destination file name => %s/
150 Destination file name => %s/
160 Destination file name => %s/1
[all …]
H A D007_variation12-win32.phpt14 Description: Opens file or URL.
25 checking for the file truncation when trying to open an existing file in "w+t" mode,
29 require($file_path."/file.inc");
36 $file_handle = fopen($file, "w+t"); //opening the file "w+t" mode
39 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
48 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "w+…
50 fclose( fopen($file, "w+t") ); //Opening the existing data file again in "w+t" mode
51 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "w+t…
54 unlink($file); //Deleting the file
55 fclose( fopen($file, "w+t") ); //Opening the non-existing file in "w+t" mode, which will be created
[all …]
H A D007_variation12.phpt14 Description: Opens file or URL.
25 checking for the file truncation when trying to open an existing file in "w+t" mode,
29 require($file_path."/file.inc");
36 $file_handle = fopen($file, "w+t"); //opening the file "w+t" mode
39 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
48 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "w+…
50 fclose( fopen($file, "w+t") ); //Opening the existing data file again in "w+t" mode
51 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "w+t…
54 unlink($file); //Deleting the file
55 fclose( fopen($file, "w+t") ); //Opening the non-existing file in "w+t" mode, which will be created
[all …]
H A D007_variation20.phpt9 Description: Opens file or URL.
20 checking for the file truncation when trying to open an existing file in "w+b" mode,
24 require($file_path."/file.inc");
31 $file_handle = fopen($file, "w+b"); //opening the file "w+b" mode
34 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
43 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "w+…
45 fclose( fopen($file, "w+b") ); //Opening the existing data file again in "w+b" mode
46 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "w+b…
49 unlink($file); //Deleting the file
50 fclose( fopen($file, "w+b") ); //Opening the non-existing file in "w+b" mode, which will be created
[all …]
H A Dfile_error.phpt2 Test file() function : error conditions
7 Description: Reads entire file into an array
8 Returns the file in an array
12 $file_handle = fopen($file_path."/file.tmp", "w");
13 var_dump( file() ); // Zero No. of args
15 $filename = $file_path."/file.tmp";
19 var_dump( file($filename, 10, NULL) ); // Incorrect flag
21 var_dump( file("temp.tmp") ); // non existing filename
29 unlink($file_path."/file.tmp");
33 Warning: file() expects at least 1 parameter, 0 given in %s on line %d
[all …]
H A Dcopy_variation5.phpt26 /* array of destination file names */
52 echo "Destination file name => ";
56 echo "Size of source file => ";
60 echo "Size of destination file => ";
87 Destination file name => %s/COPY.tmp
88 Size of source file => int(1500)
89 Size of destination file => int(1500)
94 Destination file name => %s/COPY.TMP
95 Size of source file => int(1500)
101 Destination file name => %s/CopY.TMP
[all …]
H A Dcopy_variation5-win32.phpt26 /* array of destination file names */
52 echo "Destination file name => ";
56 echo "Size of source file => ";
60 echo "Size of destination file => ";
88 Destination file name => %s/COPY.tmp
89 Size of source file => int(1500)
90 Size of destination file => int(1500)
95 Destination file name => %s/COPY.TMP
96 Size of source file => int(1500)
102 Destination file name => %s/CopY.TMP
[all …]
/PHP-7.2/ext/spl/tests/
H A DSplFileObject_fputcsv_variation10.phpt47 //close the file
53 //delete file
54 unlink($file);
63 -- file opened in r+ --
70 -- file opened in r+b --
77 -- file opened in r+t --
84 -- file opened in a+ --
105 -- file opened in w+ --
126 -- file opened in x+ --
147 -- file opened in r+ --
[all …]
/PHP-7.2/ext/standard/tests/image/
H A Dgetimagesize_basic.phpt11 // GIF file
14 //JPEG file
17 //PNG file
20 //SWF file
23 //BMP file
29 //JPC file
32 //JP2 file
35 //IFF file
52 -- GIF image file (200x100.gif) --
94 -- PNG image file (200x100.png) --
[all …]

Completed in 68 milliseconds

12345678910>>...72