Home
last modified time | relevance | path

Searched refs:file (Results 76 – 100 of 1679) sorted by relevance

12345678910>>...68

/PHP-7.1/ext/standard/tests/file/
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 Dfile_variation2.phpt7 * Source code: ext/standard/file.c
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)
144 Error: 2 - file(0.5): failed to open stream: No such file or directory, %s(%d)
172 Error: 2 - file(1): failed to open stream: No such file or directory, %s(%d)
[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 …]
H A Dfgetcsv_variation29.phpt2 Test fgetcsv() : usage variations - with only file handle as argument, file pointer pointing at end…
11 Testing fgetcsv() to read a file whose file pointer is pointing to end of file
15 echo "*** Testing fgetcsv() : with file handle as only argument and file pointer pointing at end of…
60 // else rewind the file pointer to beginning of the file
68 // set the file pointer to EOF
73 // now file pointer should point to end of the file, try reading again
76 // check the file pointer position and if eof
79 // close the file
81 //delete file
89 *** Testing fgetcsv() : with file handle as only argument and file pointer pointing at end of file
[all …]
H A Dfgetcsv_variation9.phpt50 echo "Error: failed to create file $filename!\n";
64 // else rewind the file pointer to beginning of the file
69 // rewind the file pointer to bof
81 // check the file pointer position and if eof
85 // close the file
87 //delete file
97 -- Testing fgetcsv() with file opened using r mode --
105 -- Testing fgetcsv() with file opened using rb mode --
113 -- Testing fgetcsv() with file opened using rt mode --
121 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Dfread_variation3-win32.phpt19 // include the file.inc for common functions for test
20 include ("file.inc");
31 // print file pointer position before read
45 // file pointer position after read
47 // check if file pointer at eof()
86 // read file by giving size more than its size
95 // try fread when file pointer at end
97 //reading file when file pointer at end
102 // now close the file
105 // delete the file created
[all …]
H A Dfread_variation3.phpt19 // include the file.inc for common functions for test
20 include ("file.inc");
31 // print file pointer position before read
45 // file pointer position after read
47 // check if file pointer at eof()
86 // read file by giving size more than its size
95 // try fread when file pointer at end
97 //reading file when file pointer at end
102 // now close the file
105 // delete the file created
[all …]
H A Dfread_variation4-win32.phpt19 // include the file.inc for common functions for test
20 include ("file.inc");
31 // print file pointer position before read
45 // file pointer position after read
47 // check if file pointer at eof()
85 // read file by giving size more than its size
93 // try fread when file pointer at end
95 //reading file when file pointer at end
100 // now close the file
103 // delete the file created
[all …]
H A Dfread_variation4.phpt19 // include the file.inc for common functions for test
20 include ("file.inc");
31 // print file pointer position before read
45 // file pointer position after read
47 // check if file pointer at eof()
85 // read file by giving size more than its size
93 // try fread when file pointer at end
95 //reading file when file pointer at end
100 // now close the file
103 // delete the file created
[all …]
H A Dfread_variation3-win32-mb.phpt19 // include the file.inc for common functions for test
20 include ("file.inc");
31 // print file pointer position before read
45 // file pointer position after read
47 // check if file pointer at eof()
86 // read file by giving size more than its size
95 // try fread when file pointer at end
97 //reading file when file pointer at end
102 // now close the file
105 // delete the file created
[all …]
H A Dfgetcsv_variation30.phpt2 Test fgetcsv() : usage variations - with file handle and length, file pointer pointing at end of fi…
11 Testing fgetcsv() to read a file whose file pointer is pointing to end of file
15 echo "*** Testing fgetcsv() : with file handle and length arguments, file pointer pointing at end o…
46 echo "Error: failed to create file $filename!\n";
67 // set the file pointer to EOF
72 // now file pointer should point to end of the file, try reading again
75 // check the file pointer position and if eof
78 // close the file
80 //delete file
88 *** Testing fgetcsv() : with file handle and length arguments, file pointer pointing at end of file
[all …]
H A Dfgetss_basic2-win32-mb.phpt47 echo "Error: failed to open file $filename!\n";
51 // rewind the file pointer to beginning of the file
57 /* read entire file and strip tags */
64 /* read entire file and strip tags tags */
70 // close the file
73 // delete the file
92 -- fgets() with length = 30, file pointer at 0 --
107 -- fgets() with length = 30, file pointer at 0 --
122 -- fgets() with length = 30, file pointer at 0 --
137 -- fgets() with length = 30, file pointer at 0 --
[all …]
H A Dfgetss_basic2-win32.phpt47 echo "Error: failed to open file $filename!\n";
51 // rewind the file pointer to beginning of the file
57 /* read entire file and strip tags */
64 /* read entire file and strip tags tags */
70 // close the file
73 // delete the file
92 -- fgets() with length = 30, file pointer at 0 --
107 -- fgets() with length = 30, file pointer at 0 --
122 -- fgets() with length = 30, file pointer at 0 --
137 -- fgets() with length = 30, file pointer at 0 --
[all …]
H A Dfgetss_basic2.phpt45 echo "Error: failed to open file $filename!\n";
49 // rewind the file pointer to beginning of the file
55 /* read entire file and strip tags */
62 /* read entire file and strip tags tags */
68 // close the file
71 // delete the file
90 -- fgets() with length = 30, file pointer at 0 --
105 -- fgets() with length = 30, file pointer at 0 --
120 -- fgets() with length = 30, file pointer at 0 --
135 -- fgets() with length = 30, file pointer at 0 --
[all …]
H A Dfwrite_variation4-win32.phpt23 include ("file.inc");
61 // close the file, get the size and content of the file.
77 -- Opening file in x --
85 -- Opening file in xb --
93 -- Opening file in xt --
101 -- Opening file in x+ --
127 -- Opening file in x --
135 -- Opening file in xb --
143 -- Opening file in xt --
177 -- Opening file in x --
[all …]
H A Dfwrite_variation4.phpt23 include ("file.inc");
61 // close the file, get the size and content of the file.
77 -- Opening file in x --
85 -- Opening file in xb --
93 -- Opening file in xt --
101 -- Opening file in x+ --
127 -- Opening file in x --
135 -- Opening file in xb --
143 -- Opening file in xt --
177 -- Opening file in x --
[all …]
H A Dfgetcsv_variation31.phpt2 Test fgetcsv() : usage variations - with length and enclosure, file pointer pointing at end of file
11 Testing fgetcsv() to read a file whose file pointer is pointing to end of file
15 echo "*** Testing fgetcsv() : with enclosure argument, file pointer pointing at end of file ***\n";
60 // else rewind the file pointer to beginning of the file
68 // set the file pointer to EOF
73 // now file pointer should point to end of the file, try reading again
77 // check the file pointer position and if eof
80 // close the file
82 //delete file
90 *** Testing fgetcsv() : with enclosure argument, file pointer pointing at end of file ***
[all …]
H A Dfgets_basic.phpt7 Description: Gets a line from file pointer
10 // include the file.inc for common test funcitons
11 include ("file.inc");
27 echo "Error: failed to open file $filename!";
42 //close file
45 // delete file
55 -- Testing fgets() with file opened using mode r --
57 -- fgets() with default length, file pointer at 0 --
67 -- fgets() with default length, file pointer at 0 --
77 -- fgets() with default length, file pointer at 0 --
[all …]
H A Dfgets_variation3.phpt7 Description: Gets a line from file pointer
10 // include the file.inc for common test funcitons
11 include ("file.inc");
34 echo "Error: failed to open file $filename!";
39 // get the file pointer to beginning of the file
48 // get the file pointer to beginning of the file
56 //close file
59 // delete file
69 -- Testing fgets() with file opened using mode w+ --
71 -- fgets() with default length, file pointer at 0 --
[all …]
H A Dfgetcsv_variation18.phpt45 echo "Error: failed to create file $filename!\n";
58 // else rewind the file pointer to beginning of the file
63 // rewind the file pointer to bof
71 // use different delimiter than existing in file
75 // check the file pointer position and if eof
79 // close the file
81 //delete file
91 -- Testing fgetcsv() with file opened using r mode --
99 -- Testing fgetcsv() with file opened using rb mode --
107 -- Testing fgetcsv() with file opened using rt mode --
[all …]
H A Dfgetcsv_variation22.phpt2 Test fgetcsv() : usage variations - with default enclosure, file pointer pointing at end of file
11 Testing fgetcsv() to read a file whose file pointer is pointing to end of file
15 echo "*** Testing fgetcsv() : with default enclosure, file pointer pointing at end of file ***\n";
46 echo "Error: failed to create file $filename!\n";
67 // set the file pointer to EOF
72 // now file pointer should point to end of the file, try reading again
75 // check the file pointer position and if eof
78 // close the file
80 //delete file
88 *** Testing fgetcsv() : with default enclosure, file pointer pointing at end of file ***
[all …]
/PHP-7.1/ext/curl/tests/
H A Dcurl_file_upload.phpt2 CURL file uploading
14 $file = new CurlFile($name, $mime);
16 $file = new CurlFile($name);
18 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file));
34 $file->setMimeType('text/plain');
35 var_dump($file->getMimeType());
36 var_dump($file->getFilename());
37 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file));
41 $file->setPostFilename('foo.txt');
43 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file));
[all …]
/PHP-7.1/ext/pdo_mysql/tests/
H A Dpdo_mysql___construct_uri.phpt24 $uri = sprintf('uri:file:%s', $file);
26 if ($fp = @fopen($file, 'w')) {
31 assert(file_exists($file));
37 $file, filesize($file), file_get_contents($file),
40 unlink($file);
43 if ($fp = @fopen($file, 'w')) {
48 assert(file_exists($file));
54 $file, filesize($file), file_get_contents($file),
57 unlink($file);
74 Warning: PDO::__construct(file:/tmp/pdomuri.tst): failed to open stream: No such file or directory …
[all …]

Completed in 91 milliseconds

12345678910>>...68