Home
last modified time | relevance | path

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

12345678910>>...71

/PHP-5.3/ext/standard/tests/file/
H A Dfgetss_basic2-win32.phpt47 echo "Error: failed to open file $filename!\n";
51 // rewind the file pointer to begining 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 begining 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 begining 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 begining of the file
48 // get the file pointer to begining 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 begining 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_variation1.phpt47 echo "Error: failed to create file $filename!\n";
62 // else rewind the file pointer to begining 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 begining 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 Dfgetcsv_variation7.phpt47 echo "Error: failed to create file $filename!\n";
61 // else rewind the file pointer to begining 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 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 …]
H A Dfile_variation7.phpt2 file() on a file with blank lines
11 echo "file():\n";
12 var_dump(file($filepath));
15 var_dump(file($filepath, FILE_IGNORE_NEW_LINES));
18 var_dump(file($filepath, FILE_SKIP_EMPTY_LINES));
21 var_dump(file($filepath, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES));
27 file():
45 file() with FILE_IGNORE_NEW_LINES:
59 file() with FILE_SKIP_EMPTY_LINES:
77 file() with FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES:
H A Dcopy_variation10.phpt6 Description: Makes a copy of the file source to dest.
10 /* Test copy(): Try copying source file to desntination file, where destination file name is identi…
14 echo "*** Test copy(): Trying to create a copy of file with the same source name ***\n";
15 $file = $file_path."/copy_variation10.tmp";
16 $file_handle = fopen($file, "w");
20 var_dump( copy($file, $file) );
21 var_dump( file_exists($file) );
22 var_dump( filesize($file) );
33 *** Test copy(): Trying to create a copy of file with the same source name ***
H A Dfgetss_variation4.phpt15 // include the common file related test functions
16 include ("file.inc");
50 // rewind the file pointer to begining of the file
68 // close the file
70 // delete the file
84 -- Reading when file pointer points to EOF --
99 -- Reading when file pointer points to EOF --
114 -- Reading when file pointer points to EOF --
129 -- Reading when file pointer points to EOF --
144 -- Reading when file pointer points to EOF --
[all …]
H A Dfflush_variation4.phpt2 Test fflush() function: usage variations - file opened in read-only mode
6 Description: Flushes the output to a file
12 require $file_path.'/file.inc';
22 echo "-- Iteration $count with file opened in $mode mode --\n";
24 // creating a file
27 exit("Error:failed to open file $file_name");
30 // opening the file in different read modes
33 exit("Error:failed to open file $file_name");
45 -- Iteration 1 with file opened in r mode --
47 -- Iteration 2 with file opened in rb mode --
[all …]
H A Dfopen_variation10-win32.phpt18 * Description: Open a file or a URL and return a file pointer
50 $thirdfile = 'c:\\'.$file;
91 file in root
94 file in root
99 file not opened for read
106 file not opened for read
113 file not opened for read
123 file not opened for read
128 file in root
140 file in fopen10.tmpDir
[all …]
/PHP-5.3/ext/spl/tests/
H A DSplFileObject_fwrite_variation_002.phpt5 $file = dirname(__FILE__).'/SplFileObject_fwrite_variation_002.txt';
6 if(file_exists($file)) {
7 unlink($file);
9 $obj = New SplFileObject($file,'w');
11 var_dump(file_get_contents($file));
15 $file = dirname(__FILE__).'/SplFileObject_fwrite_variation_002.txt';
16 if(file_exists($file)) {
17 unlink($file);
H A DSplFileObject_fwrite_variation_001.phpt5 $file = dirname(__FILE__).'/SplFileObject_fwrite_variation_001.txt';
6 if(file_exists($file)) {
7 unlink($file);
9 $obj = New SplFileObject($file,'w');
11 var_dump(file_get_contents($file));
15 $file = dirname(__FILE__).'/SplFileObject_fwrite_variation_001.txt';
16 if(file_exists($file)) {
17 unlink($file);
/PHP-5.3/tests/security/
H A Dopen_basedir_file.phpt9 test_open_basedir_before("file");
10 test_open_basedir_error("file");
12 var_dump(file("ok.txt"));
13 var_dump(file("../ok/ok.txt"));
14 var_dump(file($initdir."/test/ok/ok.txt"));
15 var_dump(file($initdir."/test/ok/../ok/ok.txt"));
17 test_open_basedir_after("file");
25 *** Testing open_basedir configuration [file] ***
44 Warning: file(..): failed to open stream: %s in %s on line %d
54 Warning: file(/): failed to open stream: %s in %s on line %d
[all …]
/PHP-5.3/tests/basic/
H A Dbug46313-win.phpt13 Content-Disposition: form-data; name="o1'file"; filename="o1'file.png"
18 Content-Disposition: form-data; name="o2'file"; filename="o2'file2.txt"
27 var_dump($GLOBALS["o1\'file_name"] === $_FILES["o1\'file"]["name"]);
28 var_dump($GLOBALS["o1\'file"]);
29 var_dump($GLOBALS["o1\'file"] === $_FILES["o1\'file"]["tmp_name"]);
30 /* The windows policy is walking to the last (single)quote in a file name and taking the remain.
31 This way some'file.gif becomes file.gif */
35 ["o1\'file"]=>
38 string(8) "file.png"
48 ["o2\'file"]=>
[all …]

Completed in 90 milliseconds

12345678910>>...71