Home
last modified time | relevance | path

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

12345678910>>...79

/php-src/ext/standard/tests/file/
H A Dftruncate_variation3-win32.phpt11 // include common file related test functions
12 include ("file.inc");
16 /* test ftruncate with file opened in different modes */
30 // create 1 file with some contents
33 // fopen the file using the $file_modes
38 // fopen the file using the $file_modes
42 echo "Error: failed to open file $filename!\n";
46 rewind($file_handle); // file pointer to 0
60 // delete file
70 -- Testing ftruncate() with file opening using r mode --
[all …]
H A Dftruncate_variation3.phpt11 // include common file related test functions
12 include ("file.inc");
16 /* test ftruncate with file opened in different modes */
30 // create 1 file with some contents
33 // fopen the file using the $file_modes
38 // fopen the file using the $file_modes
42 echo "Error: failed to open file $filename!\n";
46 rewind($file_handle); // file pointer to 0
60 // delete file
70 -- Testing ftruncate() with file opening using r mode --
[all …]
H A Dcopy_variation4.phpt59 echo "Size of source file => ";
90 Destination file name => %s/
91 Size of source file => int(1500)
102 Destination file name => %s/
103 Size of source file => int(1500)
114 Destination file name => %s/
115 Size of source file => int(1500)
126 Destination file name => %s/
127 Size of source file => int(1500)
136 Destination file name => %s/1
[all …]
H A Dftruncate_variation5-win32.phpt11 // include common file related test functions
12 include ("file.inc");
16 /* test ftruncate with file opened in different modes */
30 // create 1 file with some contents
33 // fopen the file using the $file_modes
38 // fopen the file using the $file_modes
42 echo "Error: failed to open file $filename!\n";
46 rewind($file_handle); // file pointer to 0
72 -- Testing ftruncate() with file opening using r mode --
80 -- Testing ftruncate() with file opening using rb mode --
[all …]
H A Dftruncate_variation5.phpt11 // include common file related test functions
12 include ("file.inc");
16 /* test ftruncate with file opened in different modes */
30 // create 1 file with some contents
33 // fopen the file using the $file_modes
38 // fopen the file using the $file_modes
42 echo "Error: failed to open file $filename!\n";
46 rewind($file_handle); // file pointer to 0
72 -- Testing ftruncate() with file opening using r mode --
80 -- Testing ftruncate() with file opening using rb mode --
[all …]
H A Dfopen_variation14.phpt17 $file = "fopen_variation14.tmp";
18 $absFile = $absTestDir.'/'.$file;
22 $files = array("file://$testDir/$file",
23 "file://./$testDir/$file",
24 "file://$absTestDir/$file"
30 $files = array("file://../$testDir/$file",
31 "file://$absTestDir/$file",
46 // create the file and test read
64 // create the file to test write
91 Warning: fopen(): Remote host file access not supported, file://fopen14.tmpDir/fopen_variation14.tm…
[all …]
H A Dfopen_variation15.phpt18 $file = "fopen_variation15.tmp";
19 $absFile = $absTestDir.'/'.$file;
25 $files = array("file://$testDir/$file",
26 "file://./$testDir/$file",
27 "file://$absTestDir/$file"
33 $files = array("file://../$testDir/$file",
34 "file://$absTestDir/$file"
50 // create the file and test read
68 // create the file to test write
95 Warning: fopen(): Remote host file access not supported, file://fopen15.tmpDir/fopen_variation15.tm…
[all …]
H A Dfputcsv_variation7.phpt60 //close the file
66 //delete file
76 -- file opened in r+ --
83 -- file opened in r+b --
97 -- file opened in a+ --
118 -- file opened in w+ --
139 -- file opened in x+ --
160 -- file opened in r+ --
181 -- file opened in a+ --
202 -- file opened in w+ --
[all …]
H A Dfputcsv_variation8.phpt60 //close the file
66 //delete file
76 -- file opened in r+ --
83 -- file opened in r+b --
97 -- file opened in a+ --
118 -- file opened in w+ --
139 -- file opened in x+ --
160 -- file opened in r+ --
181 -- file opened in a+ --
202 -- file opened in w+ --
[all …]
H A D007_variation4.phpt8 checking for the file pointer position,
9 checking for the file truncation when trying to open an existing file in "w+" mode,
13 require($file_path."/file.inc");
20 $file_handle = fopen($file, "w+"); //opening the file "w+" mode
23 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
32 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "w+…
34 fclose( fopen($file, "w+") ); //Opening the existing data file again in "w+" mode
35 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "w+"…
38 unlink($file); //Deleting the file
39 fclose( fopen($file, "w+") ); //Opening the non-existing file in "w+" mode, which will be created
[all …]
H A D007_variation11-win32-mb.phpt14 checking for the file truncation when trying to open an existing file in "wt" mode,
18 require($file_path."/file.inc");
25 $file_handle = fopen($file, "wt"); //opening the file "wt" mode
28 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
37 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "wt…
39 fclose( fopen($file, "wt") ); //Opening the existing data file again in "wt" mode
40 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "wt"…
43 unlink($file); //Deleting the file
44 fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created
45 var_dump( file_exists($file) ); //Check for the existence of file
[all …]
H A Dcopy_variation5.phpt20 /* array of destination file names */
46 echo "Destination file name => ";
50 echo "Size of source file => ";
54 echo "Size of destination file => ";
81 Destination file name => %s/COPY.tmp
82 Size of source file => int(1500)
83 Size of destination file => int(1500)
88 Destination file name => %s/COPY.TMP
89 Size of source file => int(1500)
95 Destination file name => %s/CopY.TMP
[all …]
H A Dcopy_variation5-win32.phpt21 /* array of destination file names */
47 echo "Destination file name => ";
51 echo "Size of source file => ";
55 echo "Size of destination file => ";
83 Destination file name => %s/COPY.tmp
84 Size of source file => int(1500)
85 Size of destination file => int(1500)
90 Destination file name => %s/COPY.TMP
91 Size of source file => int(1500)
97 Destination file name => %s/CopY.TMP
[all …]
H A D007_variation12-win32.phpt13 checking for the file pointer position,
14 checking for the file truncation when trying to open an existing file in "w+t" mode,
18 require($file_path."/file.inc");
25 $file_handle = fopen($file, "w+t"); //opening the file "w+t" mode
28 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
37 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "w+…
39 fclose( fopen($file, "w+t") ); //Opening the existing data file again in "w+t" mode
40 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "w+t…
43 unlink($file); //Deleting the file
44 fclose( fopen($file, "w+t") ); //Opening the non-existing file in "w+t" mode, which will be created
[all …]
H A D007_variation12.phpt13 checking for the file pointer position,
14 checking for the file truncation when trying to open an existing file in "w+t" mode,
18 require($file_path."/file.inc");
25 $file_handle = fopen($file, "w+t"); //opening the file "w+t" mode
28 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
37 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "w+…
39 fclose( fopen($file, "w+t") ); //Opening the existing data file again in "w+t" mode
40 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "w+t…
43 unlink($file); //Deleting the file
44 fclose( fopen($file, "w+t") ); //Opening the non-existing file in "w+t" mode, which will be created
[all …]
H A D007_variation19.phpt8 checking for the file pointer position,
9 checking for the file truncation when trying to open an existing file in "wb" mode,
13 require($file_path."/file.inc");
20 $file_handle = fopen($file, "wb"); //opening the file "wb" mode
23 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
32 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "wb…
34 fclose( fopen($file, "wb") ); //Opening the existing data file again in "wb" mode
35 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "wb"…
38 unlink($file); //Deleting the file
39 fclose( fopen($file, "wb") ); //Opening the non-existing file in "wb" mode, which will be created
[all …]
H A D007_variation3.phpt8 checking for the file pointer position,
9 checking for the file truncation when trying to open an existing file in "w" mode,
13 require($file_path."/file.inc");
20 $file_handle = fopen($file, "w"); //opening the file "w" mode
23 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
32 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "w"…
34 fclose( fopen($file, "w") ); //Opening the existing data file again in "w" mode
35 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "w" …
38 unlink($file); //Deleting the file
39 fclose( fopen($file, "w") ); //Opening the non-existing file in "w" mode, which will be created
[all …]
H A D007_variation11-win32.phpt13 checking for the file pointer position,
14 checking for the file truncation when trying to open an existing file in "wt" mode,
18 require($file_path."/file.inc");
25 $file_handle = fopen($file, "wt"); //opening the file "wt" mode
28 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
37 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "wt…
39 fclose( fopen($file, "wt") ); //Opening the existing data file again in "wt" mode
40 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "wt"…
43 unlink($file); //Deleting the file
44 fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created
[all …]
H A D007_variation11.phpt13 checking for the file pointer position,
14 checking for the file truncation when trying to open an existing file in "wt" mode,
18 require($file_path."/file.inc");
25 $file_handle = fopen($file, "wt"); //opening the file "wt" mode
28 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
37 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "wt…
39 fclose( fopen($file, "wt") ); //Opening the existing data file again in "wt" mode
40 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "wt"…
43 unlink($file); //Deleting the file
44 fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created
[all …]
H A D007_variation20.phpt8 checking for the file pointer position,
9 checking for the file truncation when trying to open an existing file in "w+b" mode,
13 require($file_path."/file.inc");
20 $file_handle = fopen($file, "w+b"); //opening the file "w+b" mode
23 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
32 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "w+…
34 fclose( fopen($file, "w+b") ); //Opening the existing data file again in "w+b" mode
35 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "w+b…
38 unlink($file); //Deleting the file
39 fclose( fopen($file, "w+b") ); //Opening the non-existing file in "w+b" mode, which will be created
[all …]
H A Dtempnam_variation4-0.phpt12 /* Trying to create the file in a dir with permissions from 0000 to 0350,
51 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
54 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
57 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
60 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
63 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
66 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
69 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
72 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
75 Notice: tempnam(): file created in the system's temporary directory in %s on line %d
[all …]
/php-src/ext/spl/tests/SplFileObject/
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-src/ext/curl/tests/
H A Dcurl_string_file_upload.phpt2 CURL file uploading from string
16 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file));
37 var_dump($file->mime);
38 var_dump($file->postname);
40 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file));
52 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file));
53 unset($file);
58 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file));
65 $data =& $file->data;
67 $mime =& $file->mime;
[all …]
/php-src/ext/standard/tests/image/
H A Dgetimagesize_basic.phpt6 // GIF file
7 "GIF image file" => "200x100.gif",
9 //JPEG file
12 //PNG file
15 //SWF file
18 //BMP file
24 //JPC file
27 //JP2 file
30 //IFF file
46 -- GIF image file (200x100.gif) --
[all …]
/php-src/ext/phar/tests/
H A Dbug79912.phpt11 $phar->addFromString("test.txt", "This is a test file.This is a test file.This is a test file.");
12 $file = $phar["test.txt"];
13 var_dump($file->compress(Phar::GZ)); //true (success)
14 var_dump($file->getContent());
15 var_dump($file->isCompressed()); //true (the file is compressed)
17 var_dump($file->isCompressed()); //false (the file should not be compressed anymore)
19 var_dump(file_get_contents(__DIR__ . "/bug79912/test.txt")); //the extracted file in the folder sho…
23 string(60) "This is a test file.This is a test file.This is a test file."
28 string(60) "This is a test file.This is a test file.This is a test file."

Completed in 57 milliseconds

12345678910>>...79