Home
last modified time | relevance | path

Searched refs:file (Results 151 – 175 of 1837) sorted by relevance

12345678910>>...74

/PHP-5.4/ext/standard/tests/file/
H A Dfputcsv_variation4.phpt62 //close the file
68 //delete file
78 -- file opened in r+ --
86 -- file opened in r+b --
94 -- file opened in r+t --
102 -- file opened in a+ --
126 -- file opened in w+ --
150 -- file opened in x+ --
174 -- file opened in r+ --
198 -- file opened in a+ --
[all …]
H A Dfgetcsv_variation14.phpt32 echo "Error: failed to create file $filename!\n";
39 // else rewind the file pointer to beginning of the file
44 // rewind the file pointer to bof
55 // check the file pointer position and if eof
60 // check the file pointer position and if eof
64 // close the file
66 //delete file
75 -- Testing fgetcsv() with file opened using r mode --
86 -- Testing fgetcsv() with file opened using rb mode --
97 -- Testing fgetcsv() with file opened using rt mode --
[all …]
H A D007_variation16.phpt9 Description: Opens file or URL.
14 Description: Closes an open file pointer
17 /* Test fopen() and fclose(): Opening the file in "x+t" mode,
18 checking for the file creation, write & read operations,
19 checking for the file pointer position,
20 checking for the warning msg when trying to open an existing file in "x+t" mode,
25 $file = $file_path."/007_variation16.tmp";
28 $file_handle = fopen($file, "x+t"); //opening the non-existing file in "x+t" mode, file will be cr…
31 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
37 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
[all …]
H A D007_variation24.phpt9 Description: Opens file or URL.
14 Description: Closes an open file pointer
17 /* Test fopen() and fclose(): Opening the file in "x+b" mode,
18 checking for the file creation, write & read operations,
19 checking for the file pointer position,
20 checking for the warning msg when trying to open an existing file in "x+b" mode,
25 $file = $file_path."/007_variation24.tmp";
28 $file_handle = fopen($file, "x+b"); //opening the non-existing file in "x+b" mode, file will be cr…
31 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
37 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
[all …]
H A Dunlink_variation4.phpt2 Test unlink() function : usage variations - unlink deleted file
9 /* Try deleting a file which is already deleted */
13 // temp file used
16 echo "*** Testing unlink() on deleted file ***\n";
17 // create temp file
21 // delete temp file
23 var_dump( file_exists($filename) ); // confirm file deleted
25 // delete deleted file
31 *** Testing unlink() on deleted file ***
H A Dftruncate_variation7-win32.phpt13 Description: Truncates a file to a given length
16 /* truncate the file when file pointer is positioned at end of the file */
17 // include common file related test functions
18 include ("file.inc");
22 /* test ftruncate with file opened in different modes */
36 // create 1 file with some contents
39 // fopen the file using the $file_modes
44 // fopen the file using the $file_modes
48 echo "Error: failed to open file $filename!\n";
52 rewind($file_handle); // file pointer to 0
[all …]
H A Dftruncate_variation7.phpt13 Description: Truncates a file to a given length
16 /* truncate the file when file pointer is positioned at end of the file */
17 // include common file related test functions
18 include ("file.inc");
22 /* test ftruncate with file opened in different modes */
36 // create 1 file with some contents
39 // fopen the file using the $file_modes
44 // fopen the file using the $file_modes
48 echo "Error: failed to open file $filename!\n";
52 rewind($file_handle); // file pointer to 0
[all …]
H A Dunlink_basic.phpt11 echo "*** Testing unlink() on a file ***\n";
12 $filename = "$file_path/unlink_basic.tmp"; // temp file name used here
13 $fp = fopen($filename, "w"); // create file
17 // delete file
19 var_dump( file_exists($filename) ); // confirm file doesnt exist
24 // temp file name used here
26 $fp = fopen($filename, "w"); // create file
29 // delete file
31 var_dump( file_exists($filename) ); // confirm file doesnt exist
36 *** Testing unlink() on a file ***
H A Dfwrite_variation2.phpt23 include ("file.inc");
78 /* display the file content, check the file size */
93 -- Opening file in r+ --
110 -- Opening file in r+b --
127 -- Opening file in r+t --
146 -- Opening file in r+ --
163 -- Opening file in r+b --
180 -- Opening file in r+t --
199 -- Opening file in r+ --
216 -- Opening file in r+b --
[all …]
H A Dfwrite_variation2-win32.phpt23 include ("file.inc");
78 /* display the file content, check the file size */
94 -- Opening file in r+ --
111 -- Opening file in r+b --
128 -- Opening file in r+t --
147 -- Opening file in r+ --
164 -- Opening file in r+b --
181 -- Opening file in r+t --
200 -- Opening file in r+ --
217 -- Opening file in r+b --
[all …]
H A Dstat_variation6-win32.phpt2 Test stat() functions: usage variations - changing permissions of dir/file
14 * Description: Gives information about a file
17 /* test the effects on the stats of dir/file for changing permissions of dir/file */
21 require "$file_path/file.inc";
24 /* create temp file and directory */
29 $file_handle = fopen($filename, "w"); // temp file
33 // checking stat() on file
34 echo "\n*** Testing stat() on file with miscelleneous file permission and content ***\n";
51 echo "\n*** Testing stat() on directory with miscelleneous file permission ***\n";
79 *** Testing stat() on file with miscelleneous file permission and content ***
[all …]
H A Dunlink_variation2.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 which is in use ***\n";
20 // temp file name used here
23 // create file
27 var_dump( file_exists($filename) ); // confirm file is deleted
28 // now close file handle
34 *** Testing unlink() on a file which is in use ***
H A Dreadfile_variation4.phpt138 file not read
142 file not read
146 file not read
150 file not read
154 file not read
158 file not read
162 file not read
166 file not read
170 file not read
174 file not read
[all …]
H A Dfile_basic.phpt2 Test file() function : basic functionality
6 * Prototype: array file ( string filename [,int use-include_path [,resource context]] );
7 * Description: Reads entire file into an array
8 * Returns the file in an array
10 require(dirname(__FILE__) . '/file.inc');
12 echo "*** Testing file() with basic types of files ***\n";
17 print_r( file($file_path."/file_basic1.tmp") );
21 echo "*** Testing for return type of file() function ***\n";
24 $ret_arr = file($file_path."/file_basic1.tmp");
32 *** Testing file() with basic types of files ***
[all …]
H A Dfputcsv_variation13.phpt63 //close the file
69 //delete file
79 -- file opened in r+ --
88 -- file opened in r+b --
97 -- file opened in r+t --
106 -- file opened in a+ --
133 -- file opened in w+ --
160 -- file opened in x+ --
187 -- file opened in r+ --
214 -- file opened in a+ --
[all …]
H A D007_variation10.phpt9 Description: Opens file or URL.
14 Description: Closes an open file pointer
17 /* Test fopen() and fclose(): Opening the file in "r+t" mode,
18 checking for the file creation, write & read operations,
19 checking for the file pointer position,
23 require($file_path."/file.inc");
26 $file = $file_path."/007_variation10.tmp";
30 $file_handle = fopen($file, "r+t"); //opening the file in "r+t" mode
33 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
35 …ell($file_handle) ); //File pointer position after read operation, expected at the end of the file
[all …]
H A D007_variation18.phpt9 Description: Opens file or URL.
14 Description: Closes an open file pointer
17 /* Test fopen() and fclose(): Opening the file in "r+b" mode,
18 checking for the file creation, write & read operations,
19 checking for the file pointer position,
23 require($file_path."/file.inc");
26 $file = $file_path."/007_variation18.tmp";
30 $file_handle = fopen($file, "r+b"); //opening the file in "r+b" mode
33 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
35 …ell($file_handle) ); //File pointer position after read operation, expected at the end of the file
[all …]
H A D007_variation2.phpt9 Description: Opens file or URL.
14 Description: Closes an open file pointer
17 /* Test fopen() and fclose(): Opening the file in "r+" mode,
18 checking for the file creation, write & read operations,
19 checking for the file pointer position,
23 require($file_path."/file.inc");
26 $file = $file_path."/007_variation2.tmp";
30 $file_handle = fopen($file, "r+"); //opening the file in "r+" mode
33 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
35 …ell($file_handle) ); //File pointer position after read operation, expected at the end of the file
[all …]
H A Dfgetcsv_variation13.phpt33 echo "Error: failed to create file $filename!\n";
40 // else rewind the file pointer to beginning of the file
45 // rewind the file pointer to bof
55 // check the file pointer position and if eof
59 // close the file
61 //delete file
70 -- Testing fgetcsv() with file opened using r mode --
78 -- Testing fgetcsv() with file opened using rb mode --
86 -- Testing fgetcsv() with file opened using rt mode --
94 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
/PHP-5.4/ext/standard/tests/general_functions/
H A Dbug41445.phpt6 $file = dirname(__FILE__)."/bug41445.ini";
16 file_put_contents($file, $data);
18 var_dump(parse_ini_file($file, TRUE));
19 var_dump(parse_ini_file($file));
29 file_put_contents($file, $data);
31 var_dump(parse_ini_file($file, TRUE));
32 var_dump(parse_ini_file($file));
34 @unlink($file);
H A Dbug40752.phpt6 $file = dirname(__FILE__)."/bug40752.ini";
7 file_put_contents($file, '
12 var_dump(parse_ini_file($file));
14 file_put_contents($file, '
19 var_dump(parse_ini_file($file));
21 unlink($file);
/PHP-5.4/Zend/tests/
H A Ddebug_backtrace_limit.phpt27 [file] => %sdebug_backtrace_limit.php
41 [file] => %sdebug_backtrace_limit.php
52 [file] => %sdebug_backtrace_limit.php
66 [file] => %sdebug_backtrace_limit.php
77 [file] => %sdebug_backtrace_limit.php
88 [file] => %sdebug_backtrace_limit.php
102 [file] => %sdebug_backtrace_limit.php
113 [file] => %sdebug_backtrace_limit.php
124 [file] => %sdebug_backtrace_limit.php
/PHP-5.4/ext/pdo_mysql/tests/
H A Dpdo_mysql_stmt_blobfromsteam.phpt14 $fp = fopen($file, 'w');
24 if (!file_exists($file))
27 unlink($file);
35 @unlink($file);
37 if (file_exists($file)) {
42 $fp = fopen($file, 'w');
44 printf("[%03d + 2] Cannot create test file '%s'\n", $offset, $file);
50 if (!file_exists($file)) {
51 printf("[%03d + 3] Failed to create test file '%s'\n", $offset, $file);
64 $fp = fopen($file, 'r');
[all …]
/PHP-5.4/ext/standard/tests/dir/
H A Dreaddir_basic.phpt16 // include the file.inc for Function: function create_files()
18 include(dirname(__FILE__)."/../file/file.inc");
27 while( FALSE !== ($file = readdir($dh)) ) {
28 $a[] = $file;
31 foreach($a as $file) {
32 var_dump($file);
38 while( FALSE !== ( $file = readdir() ) ) {
39 $a[] = $file;
42 foreach($a as $file) {
43 var_dump($file);
/PHP-5.4/ext/bcmath/libbcmath/
H A Dmissing114 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
115 if test -z "$file"; then
116 file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
117 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
119 touch $file

Completed in 73 milliseconds

12345678910>>...74