Home
last modified time | relevance | path

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

12345678910>>...79

/php-src/ext/standard/tests/file/
H A Dtempnam_variation4-1.phpt12 /* Trying to create the file in a dir with permissions from 0351 to 0777,
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 …]
H A Dfread_variation4.phpt5 // include the file.inc for common functions for test
6 include ("file.inc");
17 // print file pointer position before read
31 // file pointer position after read
33 // check if file pointer at eof()
71 // read file by giving size more than its size
79 // try fread when file pointer at end
81 //reading file when file pointer at end
86 // now close the file
89 // delete the file created
[all …]
H A Dfputcsv_variation10.phpt50 //close the file
56 //delete file
66 -- file opened in r+ --
73 -- file opened in r+b --
80 -- file opened in r+t --
87 -- file opened in a+ --
108 -- file opened in w+ --
129 -- file opened in x+ --
150 -- file opened in r+ --
174 -- file opened in a+ --
[all …]
H A Dcopy_variation3-win32.phpt23 /* array of destination file names */
30 " ", //blank space as file name
47 echo "Existence of destination file => ";
51 echo "Destination file name => ";
55 echo "Size of source file => ";
59 echo "Size of destination file => ";
81 Existence of destination file => bool(true)
83 Size of source file => int(1500)
84 Size of destination file => int(1500)
90 Size of source file => int(1500)
[all …]
H A Dfwrite_variation4-win32.phpt14 include ("file.inc");
52 // close the file, get the size and content of the file.
68 -- Opening file in x --
76 -- Opening file in xb --
84 -- Opening file in xt --
92 -- Opening file in x+ --
118 -- Opening file in x --
126 -- Opening file in xb --
134 -- Opening file in xt --
168 -- Opening file in x --
[all …]
H A Dfwrite_variation4.phpt14 include ("file.inc");
52 // close the file, get the size and content of the file.
68 -- Opening file in x --
76 -- Opening file in xb --
84 -- Opening file in xt --
92 -- Opening file in x+ --
118 -- Opening file in x --
126 -- Opening file in xb --
134 -- Opening file in xt --
168 -- Opening file in x --
[all …]
H A Dfopen_variation10-win32.phpt44 $thirdfile = 'c:\\'.$file;
84 file in root
87 file in root
92 file not opened for read
97 file not opened for read
102 file not opened for read
105 file in fopen10.tmpdirTwo
110 file not opened for read
113 file in root
125 file in fopen10.tmpDir
[all …]
H A Dfopen_variation11-win32.phpt43 $thirdfile = 'c:\\'.$file;
82 file in root
85 file in root
90 file not opened for read
95 file not opened for read
100 file not opened for read
103 file in fopen11.tmpdirTwo
108 file not opened for read
111 file in root
123 file in fopen11.tmpDir
[all …]
H A Dfgetcsv_variation8.phpt45 echo "Error: failed to create file $filename!\n";
60 // else rewind the file pointer to beginning of the file
65 // 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 --
102 -- Testing fgetcsv() with file opened using rb mode --
110 -- Testing fgetcsv() with file opened using rt mode --
118 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Dfgetcsv_variation9.phpt49 echo "Error: failed to create file $filename!\n";
63 // else rewind the file pointer to beginning of the file
68 // rewind the file pointer to bof
80 // check the file pointer position and if eof
84 // close the file
86 //delete file
96 -- Testing fgetcsv() with file opened using r mode --
104 -- Testing fgetcsv() with file opened using rb mode --
112 -- Testing fgetcsv() with file opened using rt mode --
120 -- 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…
6 Testing fgetcsv() to read a file whose file pointer is pointing to end of file
10 echo "*** Testing fgetcsv() : with file handle as only argument and file pointer pointing at end of…
55 // else rewind the file pointer to beginning of the file
63 // set the file pointer to EOF
68 // now file pointer should point to end of the file, try reading again
71 // check the file pointer position and if eof
74 // close the file
76 //delete file
84 *** Testing fgetcsv() : with file handle as only argument and file pointer pointing at end of file
[all …]
H A Dfgetcsv_variation30.phpt2 Test fgetcsv() : usage variations - with file handle and length, file pointer pointing at end of fi…
6 Testing fgetcsv() to read a file whose file pointer is pointing to end of file
10 echo "*** Testing fgetcsv() : with file handle and length arguments, file pointer pointing at end o…
41 echo "Error: failed to create file $filename!\n";
62 // set the file pointer to EOF
67 // now file pointer should point to end of the file, try reading again
70 // check the file pointer position and if eof
73 // close the file
75 //delete file
83 *** Testing fgetcsv() : with file handle and length arguments, file pointer pointing at end of file
[all …]
H A Dfread_variation3-win32-mb.phpt11 // include the file.inc for common functions for test
12 include ("file.inc");
23 // print file pointer position before read
37 // file pointer position after read
39 // check if file pointer at eof()
78 // read file by giving size more than its size
87 // try fread when file pointer at end
89 //reading file when file pointer at end
94 // now close the file
97 // delete the file created
[all …]
H A Dfread_variation3-win32.phpt11 // include the file.inc for common functions for test
12 include ("file.inc");
23 // print file pointer position before read
37 // file pointer position after read
39 // check if file pointer at eof()
78 // read file by giving size more than its size
87 // try fread when file pointer at end
89 //reading file when file pointer at end
94 // now close the file
97 // delete the file created
[all …]
H A Dfread_variation3.phpt11 // include the file.inc for common functions for test
12 include ("file.inc");
23 // print file pointer position before read
37 // file pointer position after read
39 // check if file pointer at eof()
78 // read file by giving size more than its size
87 // try fread when file pointer at end
89 //reading file when file pointer at end
94 // now close the file
97 // delete the file created
[all …]
H A Dsymlink_link_linkinfo_is_link_variation3.phpt12 /* Variation 3 : Create file and a soft link to the file
23 // create temp file
24 $file = fopen($filename, "w");
26 // create soft link to file
33 // fill data into file
35 fclose($file);
76 // write to temp file
77 $file = fopen($filename, "w");
78 fwrite($file, "Hello World");
79 fclose($file);
[all …]
H A Dfgetcsv_variation31.phpt2 Test fgetcsv() : usage variations - with length and enclosure, file pointer pointing at end of file
6 Testing fgetcsv() to read a file whose file pointer is pointing to end of file
10 echo "*** Testing fgetcsv() : with enclosure argument, file pointer pointing at end of file ***\n";
41 echo "Error: failed to create file $filename!\n";
55 // else rewind the file pointer to beginning of the file
63 // set the file pointer to EOF
68 // now file pointer should point to end of the file, try reading again
72 // check the file pointer position and if eof
75 // close the file
77 //delete file
[all …]
H A Dfgets_basic.phpt5 // include the file.inc for common test functions
6 include ("file.inc");
22 echo "Error: failed to open file $filename!";
37 //close file
40 // delete file
50 -- Testing fgets() with file opened using mode r --
52 -- fgets() with default length, file pointer at 0 --
62 -- fgets() with default length, file pointer at 0 --
72 -- fgets() with default length, file pointer at 0 --
84 -- fgets() with default length, file pointer at 0 --
[all …]
H A Dfgetcsv_variation18.phpt44 echo "Error: failed to create file $filename!\n";
57 // else rewind the file pointer to beginning of the file
62 // rewind the file pointer to bof
70 // use different delimiter than existing in file
74 // check the file pointer position and if eof
78 // close the file
80 //delete file
90 -- Testing fgetcsv() with file opened using r mode --
98 -- Testing fgetcsv() with file opened using rb mode --
106 -- Testing fgetcsv() with file opened using rt mode --
[all …]
H A Dfgets_variation3.phpt5 // include the file.inc for common test functions
6 include ("file.inc");
29 echo "Error: failed to open file $filename!";
34 // get the file pointer to beginning of the file
43 // get the file pointer to beginning of the file
51 //close file
54 // delete file
64 -- Testing fgets() with file opened using mode w+ --
66 -- fgets() with default length, file pointer at 0 --
77 -- fgets() with default length, file pointer at 0 --
[all …]
/php-src/ext/spl/tests/SplFileObject/
H A Dfgetcsv_blank_file.phpt7 $file = new SplFileObject($file_path, 'w');
8 $file = new SplTempFileObject();
10 // write to file
11 $file->fwrite("");
13 // read from file
14 $file->rewind();
15 var_dump($file->fgetcsv());
17 $file->setFlags(SplFileObject::SKIP_EMPTY);
18 $file->rewind();
19 var_dump($file->fgetcsv());
H A Dgh8121.phpt2 GH-8121 (SplFileObject - seek and key with csv file inconsistent)
11 $file = new SplFileObject(__DIR__ . "/gh8121.csv", "r");
13 $file->setFlags($flags);
14 $file->seek(0);
15 var_dump($file->key());
16 $file->seek(1);
17 var_dump($file->key());
18 $file->seek(2);
19 var_dump($file->key());
20 $file->seek(3);
[all …]
H A Dbug77024.phpt6 $file = new SplTempFileObject;
7 $file->fputcsv(['foo', 'bar', 'baz']);
8 $file->rewind();
9 $file->setFlags(SplFileObject::READ_CSV);
10 echo $file . "\n";
14 $file = new SplFileObject($tmp);
15 $file->rewind();
16 echo $file . "\n";
17 unset($file);
H A Dgh8273.phpt6 $file = new SplTempFileObject();
8 // write to file
10 $file->fwrite("line {$i}" . PHP_EOL);
13 // read from file
14 $file->rewind();
15 while ($file->valid()) {
16 echo $file->key(), ': ', $file->fgets();
/php-src/ext/curl/tests/
H A Dcurl_file_upload.phpt2 CURL file uploading
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');
41 var_dump($file->getPostFilename());
42 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file));
[all …]

Completed in 148 milliseconds

12345678910>>...79