Home
last modified time | relevance | path

Searched refs:file (Results 201 – 225 of 2171) sorted by relevance

12345678910>>...87

/PHP-7.3/sapi/phpdbg/
H A Dphpdbg_parser.y88 $$.file.name = $2.str;
89 $$.file.line = $3.num;
93 $$.file.name = $1.str;
94 $$.file.line = $4.num;
99 if ($$.file.name) {
100 memcpy(&$$.file.name[0], $1.str, $1.len);
102 $$.file.name[$1.len + $2.len] = '\0';
104 $$.file.line = $4.num;
109 if ($$.file.name) {
112 $$.file.name[$1.len + $2.len] = '\0';
[all …]
/PHP-7.3/ext/standard/tests/file/
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 Dfgetcsv_variation13.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
54 // check the file pointer position and if eof
58 // close the file
60 //delete file
69 -- Testing fgetcsv() with file opened using r mode --
77 -- Testing fgetcsv() with file opened using rb mode --
85 -- Testing fgetcsv() with file opened using rt mode --
93 -- 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 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 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 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
58 *** Testing stat(): on a file with read/write permission ***
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
52 *** Checking stat() on a file opened using read/write mode ***
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
68 *** Testing stat(): with creating & deleting subdir/file ***
69 -- Testing stat() on dir after subdir and file is created in it --
[all …]
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
H A D007_variation17.phpt9 Description: Opens file or URL.
14 Description: Closes an open file pointer
17 /* Test fopen() and fclose(): Opening the file in "rb" 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_variation17.tmp";
30 $file_handle = fopen($file, "rb"); //opening the file in "rb" 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
H A D007_variation9.phpt9 Description: Opens file or URL.
14 Description: Closes an open file pointer
17 /* Test fopen() and fclose(): Opening the file in "rt" 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_variation9.tmp";
30 $file_handle = fopen($file, "rt"); //opening the file in "rt" 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-7.3/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);
H A DSplFileInfo_getExtension_basic.phpt5 $file = md5('SplFileInfo::getExtension');
8 touch($file . $ext);
9 $info = new SplFileInfo($file . $ext);
10 var_dump($info->getExtension(), pathinfo($file . $ext, PATHINFO_EXTENSION));
15 $file = md5('SplFileInfo::getExtension');
18 unlink($file . $ext);
/PHP-7.3/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-7.3/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-7.3/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
/PHP-7.3/ext/standard/tests/image/
H A Dimage_type_to_mime_type.phpt13 while (($file = readdir($dir)) !== FALSE) {
14 if (preg_match('/^test.+pix\./',$file) && $file != "test13pix.swf") {
15 $files[] = $file;
20 foreach($files as $file) {
21 $result[$file] = getimagesize(dirname(__FILE__)."/$file");
22 $result[$file] = image_type_to_mime_type($result[$file][2]);
/PHP-7.3/ext/simplexml/tests/
H A D022.phpt10 <pres><content><file glob="slide_*.xml"/></content></pres>
19 var_dump($sxe->content->file);
22 foreach($sxe->content->file as $file)
24 var_dump($file);
25 var_dump($file['glob']);
33 ["file"]=>
/PHP-7.3/ext/phar/tests/
H A Dbug76584.phpt13 $phar->addFromString('76584.txt', 'This is a test file.');
14 $file = $phar['76584.txt'];
15 var_dump($file->compress(Phar::GZ));
16 var_dump($file->isCompressed());
17 var_dump($file->decompress());
18 var_dump($file->isCompressed());
29 This is a test file.

Completed in 46 milliseconds

12345678910>>...87