Home
last modified time | relevance | path

Searched refs:file (Results 176 – 200 of 1863) sorted by relevance

12345678910>>...75

/PHP-5.5/ext/standard/tests/general_functions/
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.5/ext/opcache/tests/
H A Dbug65559.phpt11 $file = __DIR__ . "/bug6559.inc.php";
12 file_put_contents($file, '<?php return 1;');
13 $var = include $file;
15 file_put_contents($file, '<?php return 2;');
16 $var = include $file;
18 @unlink($file);
/PHP-5.5/ext/standard/tests/file/
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 …]
H A Dfgetcsv_variation20.phpt34 echo "Error: failed to create file $filename!\n";
41 // else rewind the file pointer to beginning of the file
46 // rewind the file pointer to bof
57 // check the file pointer position and if eof
61 // close the file
63 //delete file
72 -- Testing fgetcsv() with file opened using r mode --
80 -- Testing fgetcsv() with file opened using rb mode --
88 -- Testing fgetcsv() with file opened using rt mode --
96 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Dlstat_stat_variation21.phpt13 Description: Gives information about a file or symbolic link
16 Description: Gives information about a file
19 /* test the effects of truncate() on stats of a file */
22 require "$file_path/file.inc";
25 /* create temp file */
27 $fp = fopen($filename, "w"); // temp file
30 /* ftruncate the current file and check stat() on the file */
32 echo "*** Testing stat() on file by truncating it to given size ***\n";
37 // opening file in r/w mode
59 *** Testing stat() on file by truncating it to given size ***
H A Dfilestat.phpt2 various file stat func tests
24 var_dump(fileinode("/no/such/file/or/dir"));
25 var_dump(fileowner("/no/such/file/or/dir"));
26 var_dump(filegroup("/no/such/file/or/dir"));
27 var_dump(fileatime("/no/such/file/or/dir"));
28 var_dump(filectime("/no/such/file/or/dir"));
49 Warning: fileinode(): stat failed for /no/such/file/or/dir in %s on line %d
52 Warning: fileowner(): stat failed for /no/such/file/or/dir in %s on line %d
55 Warning: filegroup(): stat failed for /no/such/file/or/dir in %s on line %d
58 Warning: fileatime(): stat failed for /no/such/file/or/dir in %s on line %d
[all …]
H A Dfgetcsv_variation25.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
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 --
103 -- Testing fgetcsv() with file opened using rb mode --
110 -- Testing fgetcsv() with file opened using rt mode --
117 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Dfgetcsv_variation27.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
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 --
103 -- Testing fgetcsv() with file opened using rb mode --
110 -- Testing fgetcsv() with file opened using rt mode --
117 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Dfgetcsv_variation28.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
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 --
103 -- Testing fgetcsv() with file opened using rb mode --
110 -- Testing fgetcsv() with file opened using rt mode --
117 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Dfgetcsv_variation3.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 --
101 -- Testing fgetcsv() with file opened using rb mode --
108 -- Testing fgetcsv() with file opened using rt mode --
115 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Dfgetcsv_variation4.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 --
100 -- Testing fgetcsv() with file opened using rb mode --
107 -- Testing fgetcsv() with file opened using rt mode --
114 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Dfgetcsv_variation5.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
79 // check the file pointer position and if eof
83 // close the file
85 //delete file
95 -- Testing fgetcsv() with file opened using r mode --
102 -- Testing fgetcsv() with file opened using rb mode --
109 -- Testing fgetcsv() with file opened using rt mode --
116 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Dfile_put_contents.phpt10 $file = dirname(__FILE__)."/file_put_contents.txt";
14 var_dump(file_put_contents($file, $context));
15 var_dump(file_put_contents($file, new stdClass));
16 var_dump(file_put_contents($file, new foo));
17 $fp = fopen($file, "r");
18 var_dump(file_put_contents($file, "string", 0, $fp));
20 @unlink($file);
H A Dstat_variation3-win32.phpt2 Test stat() functions: usage variations - effects of creating/deleting the dir/file
14 * Description: Gives information about a file
17 /* test the effects of creating & deleting of subdir/file on the stats of dir/file */
20 require "$file_path/file.inc";
23 /* create temp file and directory */
26 echo "*** Testing stat(): with creating & deleting subdir/file ***\n";
29 echo "-- Testing stat() on dir after subdir and file is created in it --\n";
51 // comparing stats after the deletion of subdir and file
70 *** Testing stat(): with creating & deleting subdir/file ***
71 -- Testing stat() on dir after subdir and file is created in it --
[all …]
H A Dlstat_stat_variation13.phpt2 Test lstat() and stat() functions: usage variations - file opened using w and r mode
13 Description: Gives information about a file or symbolic link
16 Description: Gives information about a file
19 /* use stat on file created using "w" and "r" mode of fopen */
22 require "$file_path/file.inc";
27 echo "*** Checking stat() on a file opened using read/write mode ***\n";
28 $file_handle = fopen($filename, "w"); // create file
34 // opening file again in read mode
35 $file_handle = fopen($filename, "r"); // read file
53 *** Checking stat() on a file opened using read/write mode ***
H A Dstat_variation5-win32.phpt2 Test stat() functions: usage variations - file opened in read/write mode
14 * Description: Gives information about a file
17 /* test the stats of file opened in write mode and then same in read mode */
20 require "$file_path/file.inc";
23 $file_handle = fopen("$file_path/stat_variation5.tmp", "w"); // temp file
27 echo "\n*** Testing stat(): on a file with read/write permission ***\n";
30 $file_handle = fopen($filename, "w"); // create file
36 // opening file again in read mode
37 $file_handle = fopen($filename, "r"); // read file
60 *** Testing stat(): on a file with read/write permission ***
H A Dstream_001.phpt6 var_dump(stream_wrapper_unregister('file'));
7 var_dump(fopen("file://".__FILE__, "r"));
8 var_dump(stream_wrapper_restore('file'));
9 var_dump(fopen("file://".__FILE__, "r"));
16 Warning: fopen(): Unable to find the wrapper "file" - did you forget to enable it when you configur…
18 Warning: fopen(): file:// wrapper is disabled in the server configuration in %s on line %d
20 Warning: fopen(file://%s): failed to open stream: no suitable wrapper could be found in %s on line …
H A D007_variation1.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_variation1.tmp";
30 $file_handle = fopen($file, "r"); //opening the file in "r" mode
33 var_dump( ftell($file_handle) ); //Initial position of file pointer
36 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
/PHP-5.5/ext/standard/tests/strings/
H A Dmd5_file.phpt7 * Description: Calculate the MD5 hash of a given file
10 /* Creating an empty file */
14 /* Creating a data file */
18 /* Writing into file */
20 $content = "Add this to the file\n";
23 echo "Cannot write to file ($filename)";
53 /* Hexadecimal Output for Empty file as input */
57 /* Raw Binary Output for Empty file as input */
96 *** Hexadecimal Output for Empty file as Argument ***
99 *** Raw Binary Output for Empty file as Argument ***
[all …]
/PHP-5.5/Zend/tests/
H A Ddebug_backtrace_options.phpt76 [file] => %sdebug_backtrace_options.php
87 [file] => %sdebug_backtrace_options.php
101 [file] => %sdebug_backtrace_options.php
120 [file] => %sdebug_backtrace_options.php
139 [file] => %sdebug_backtrace_options.php
151 [file] => %sdebug_backtrace_options.php
165 [file] => %sdebug_backtrace_options.php
184 [file] => %sdebug_backtrace_options.php
203 [file] => %sdebug_backtrace_options.php
215 [file] => %sdebug_backtrace_options.php
[all …]
/PHP-5.5/ext/phar/phar/
H A Dphar.php35 function command_include($file) argument
37 $file = 'phar://' . __FILE__ . '/' . $file;
38 if (file_exists($file)) {
39 include($file);
/PHP-5.5/ext/spl/tests/
H A DDirectoryIterator_getExtension_basic.phpt15 foreach ($files as $file) {
16 touch($dir . $file);
23 foreach (new DirectoryIterator($dir) as $file) {
24 if (in_array($file->getFilename(), $skip)) {
27 $dit_exts[] = $file->getExtension();
28 $nfo_exts[] = pathinfo($file->getFilename(), PATHINFO_EXTENSION);
38 foreach ($files as $file) {
39 unlink($dir . $file);
/PHP-5.5/ext/standard/tests/image/
H A Diptcembed_001.phpt2 iptcembed() and wrong file
6 $file = dirname(__FILE__).'/iptcembed_001.data';
7 $fp = fopen($file, "w");
11 var_dump(iptcembed(-1, $file, -1));
12 unlink($file);
H A Dimage_type_to_mime_type.phpt14 while (($file = readdir($dir)) !== FALSE) {
15 if (preg_match('/^test.+pix\./',$file) && $file != "test13pix.swf") {
16 $files[] = $file;
21 foreach($files as $file) {
22 $result[$file] = getimagesize(dirname(__FILE__)."/$file");
23 $result[$file] = image_type_to_mime_type($result[$file][2]);
/PHP-5.5/ext/standard/tests/dir/
H A Drewinddir_variation3.phpt2 Test rewinddir() function : usage variations - file pointers
12 * Pass a file pointer to rewinddir() to test behaviour
17 echo "\n-- Open a file using fopen --\n";
24 echo "\n-- Check if rewinddir() has repositioned the file pointer --\n";
26 echo "rewinddir() works on file pointers\n";
28 echo "rewinddir() does not work on file pointers\n";
35 -- Open a file using fopen --
41 -- Check if rewinddir() has repositioned the file pointer --
42 rewinddir() does not work on file pointers

Completed in 49 milliseconds

12345678910>>...75