Home
last modified time | relevance | path

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

12345678910>>...70

/PHP-5.5/ext/standard/tests/file/
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 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.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 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_variation4.phpt65 echo "Size of source file => ";
98 Destination file name => %s/
99 Size of source file => int(1500)
110 Destination file name => %s/
111 Size of source file => int(1500)
126 Destination file name => %s/�
128 Size of destination file =>
140 Destination file name => %s/
152 Destination file name => %s/
162 Destination file name => %s/1
[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 => ";
86 Existence of destination file => bool(true)
88 Size of source file => int(1500)
89 Size of destination file => int(1500)
95 Size of source file => int(1500)
[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 => ";
89 Destination file name => %s/COPY.tmp
90 Size of source file => int(1500)
91 Size of destination file => int(1500)
96 Destination file name => %s/COPY.TMP
97 Size of source file => int(1500)
103 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 => ";
90 Destination file name => %s/COPY.tmp
91 Size of source file => int(1500)
92 Size of destination file => int(1500)
97 Destination file name => %s/COPY.TMP
98 Size of source file => int(1500)
104 Destination file name => %s/CopY.TMP
[all …]
H A D007_variation11.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 Dfgetss_basic1.phpt12 // include the common file related test functions
13 include ("file.inc");
36 create_file ($filename); //create an empty file
40 echo "Error: failed to open file $filename!\n";
45 /* read entire file and strip tags */
52 /* read entire file and strip tags tags */
58 // close the file
61 // delete the file
76 -- fgets() with length = 30, file pointer at 0 --
87 -- fgets() with length = 30, file pointer at 0 --
[all …]
H A Dfgetcsv_variation26.phpt43 echo "Error: failed to create file $filename!\n";
57 // rewind the file pointer to bof
66 // check the file pointer position and if eof
70 // close the file
72 //delete file
82 -- Testing fgetcsv() with file opened using w mode --
97 -- Testing fgetcsv() with file opened using a mode --
112 -- Testing fgetcsv() with file opened using x mode --
127 -- Testing fgetcsv() with file opened using w mode --
142 -- Testing fgetcsv() with file opened using a mode --
[all …]
H A Dfgetcsv_variation8.phpt50 echo "Error: failed to create file $filename!\n";
65 // else rewind the file pointer to beginning of the file
70 // rewind the file pointer to bof
83 // check the file pointer position and if eof
87 // close the file
89 //delete file
99 -- Testing fgetcsv() with file opened using r mode --
107 -- Testing fgetcsv() with file opened using rb mode --
115 -- Testing fgetcsv() with file opened using rt mode --
123 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
/PHP-5.5/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-5.5/scripts/dev/
H A Dextern_c.php6 foreach (glob("$dir/*") as $file) {
7 if (is_dir($file)) {
8 if (basename($file) != "CVS") {
9 scan_dir($file);
11 } else if (fnmatch("*.h", $file)) {
12 scan_file($file);
17 function scan_file($file) { argument
20 foreach (file($file) as $nr => $line) {
30 if (!$flag) echo "$file:".($nr+1)." $line";
/PHP-5.5/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 78 milliseconds

12345678910>>...70