Home
last modified time | relevance | path

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

12345678910>>...70

/PHP-5.5/ext/standard/tests/file/
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_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 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.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 …]
H A Dunlink_variation2-win32.phpt2 Test unlink() function : usage variations - unlink file in use
15 /* Try to unlink file when file handle is still in use */
19 echo "*** Testing unlink() on a file when file handle is open ***\n";
20 // temp file name used here
23 // create file
26 var_dump( unlink($filename) ); // expected: false as file handle is still open
27 // now close file handle
30 // now unlink file
32 var_dump( file_exists($filename) ); // confirm file is deleted
37 *** Testing unlink() on a file when file handle is open ***
H A Dfgetcsv_variation7.phpt47 echo "Error: failed to create file $filename!\n";
61 // else rewind the file pointer to beginning of the file
66 // rewind the file pointer to bof
77 // check the file pointer position and if eof
81 // close the file
83 //delete file
93 -- Testing fgetcsv() with file opened using r mode --
103 -- Testing fgetcsv() with file opened using rb mode --
113 -- Testing fgetcsv() with file opened using rt mode --
123 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Dfgetcsv_variation1.phpt47 echo "Error: failed to create file $filename!\n";
62 // else rewind the file pointer to beginning of the file
67 // rewind the file pointer to bof
77 // check the file pointer position and if eof
81 // close the file
83 //delete file
93 -- Testing fgetcsv() with file opened using r mode --
103 -- Testing fgetcsv() with file opened using rb mode --
113 -- Testing fgetcsv() with file opened using rt mode --
123 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Dfgetcsv_variation2.phpt47 echo "Error: failed to create file $filename!\n";
62 // else rewind the file pointer to beginning of the file
67 // rewind the file pointer to bof
78 // check the file pointer position and if eof
82 // close the file
84 //delete file
94 -- Testing fgetcsv() with file opened using r mode --
104 -- Testing fgetcsv() with file opened using rb mode --
114 -- Testing fgetcsv() with file opened using rt mode --
124 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Dfgets_variation6-win32.phpt13 Description: Gets a line from file pointer
16 // include the file.inc for common test funcitons
17 include ("file.inc");
45 // seek to end of the file and try fgets()
54 //close file
57 // delete file
69 -- fgets() with file pointer pointing at EOF --
77 -- fgets() with file pointer pointing at EOF --
85 -- fgets() with file pointer pointing at EOF --
93 -- fgets() with file pointer pointing at EOF --
[all …]
H A Dfgets_variation6.phpt13 Description: Gets a line from file pointer
16 // include the file.inc for common test funcitons
17 include ("file.inc");
45 // seek to end of the file and try fgets()
54 //close file
57 // delete file
69 -- fgets() with file pointer pointing at EOF --
77 -- fgets() with file pointer pointing at EOF --
85 -- fgets() with file pointer pointing at EOF --
93 -- fgets() with file pointer pointing at EOF --
[all …]
H A Dsymlink_link_linkinfo_is_link_variation3.phpt24 /* Variation 3 : Create file and a soft link to the file
35 // create temp file
36 $file = fopen($filename, "w");
38 // create soft link to file
45 // fill data into file
47 fclose($file);
88 // write to temp file
89 $file = fopen($filename, "w");
90 fwrite($file, "Hello World");
91 fclose($file);
[all …]
/PHP-5.5/ext/curl/tests/
H A Dcurl_file_upload.phpt2 CURL file uploading
13 $file = new CurlFile($name, $mime);
15 $file = new CurlFile($name);
17 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file));
33 $file->setMimeType('text/plain');
34 var_dump($file->getMimeType());
35 var_dump($file->getFilename());
36 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file));
40 $file->setPostFilename('foo.txt');
42 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file));
[all …]

Completed in 103 milliseconds

12345678910>>...70