Home
last modified time | relevance | path

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

12345678910>>...89

/php-src/ext/zlib/tests/
H A Dgzopen_variation4.phpt39 // should read dir2 file
47 //create a file in dir1
109 This is a file in dir2
110 This is a file in dir1
111 This is a file in dir1
112 This is a file in working dir
113 This is a file in script dir
128 This is a file in dir2
129 This is a file in dir1
130 This is a file in dir1
[all …]
/php-src/ext/standard/tests/file/
H A Dfile_variation5.phpt2 file() with various paths
23 echo "file() on a path containing .. and .\n";
24 var_dump(file("./$test_dirname/../$filename"));
27 var_dump(file("./$test_dirname/bad_dir/../../$filename"));
29 echo "\nfile() on a linked file\n";
32 var_dump(file($linkname));
37 var_dump(file("../$filename"));
49 file() on a path containing .. and .
61 file() on a path containing .. with invalid directories
73 file() on a linked file
[all …]
H A Dfgetcsv_variation14.phpt27 echo "Error: failed to create file $filename!\n";
34 // else rewind the file pointer to beginning of the file
39 // rewind the file pointer to bof
50 // check the file pointer position and if eof
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 --
81 -- Testing fgetcsv() with file opened using rb mode --
92 -- Testing fgetcsv() with file opened using rt mode --
[all …]
H A Dfgetc_variation1.phpt2 Test fgetc() function : usage variations - read when file pointer at EOF
6 include ("file.inc");
9 echo "-- Testing fgetc() with file whose file pointer is pointing to EOF --\n";
10 // create a file
15 // loop to check the file opened in different read modes
21 // open the file
24 echo "Error: failed to open file $filename! \n";
28 // seek to end of the file and try fgetc()
34 var_dump( ftell($file_handle) ); // file pointer position
36 // close the file handle
[all …]
H A D007_variation16.phpt6 /* Test fopen() and fclose(): Opening the file in "x+t" mode,
7 checking for the file creation, write & read operations,
8 checking for the file pointer position,
9 checking for the warning msg when trying to open an existing file in "x+t" mode,
14 $file = $file_path."/007_variation16.tmp";
17 $file_handle = fopen($file, "x+t"); //opening the non-existing file in "x+t" mode, file will be cr…
20 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
24 …ump( fread($file_handle, 100) ); //Check for read operation; passes; expected: content of the file
25 …ell($file_handle) ); //File pointer position after read operation, expected at the end of the file
26 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
[all …]
H A D007_variation23.phpt6 /* Test fopen() and fclose(): Opening the file in "xb" mode,
7 checking for the file creation, write & read operations,
8 checking for the file pointer position,
9 checking for the warning msg when trying to open an existing file in "xb" mode,
14 $file = $file_path."/007_variation23.tmp";
17 $file_handle = fopen($file, "xb"); //opening the non-existing file in "xb" mode, file will be crea…
20 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
22 …ll($file_handle) ); //File pointer position after write operation, expected at the end of the file
26 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
28 $file_handle = fopen($file, "xb"); //Opening the existing data file in 'xb' mode to check for the …
[all …]
H A D007_variation24.phpt6 /* Test fopen() and fclose(): Opening the file in "x+b" mode,
7 checking for the file creation, write & read operations,
8 checking for the file pointer position,
9 checking for the warning msg when trying to open an existing file in "x+b" mode,
14 $file = $file_path."/007_variation24.tmp";
17 $file_handle = fopen($file, "x+b"); //opening the non-existing file in "x+b" mode, file will be cr…
20 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
24 …ump( fread($file_handle, 100) ); //Check for read operation; passes; expected: content of the file
25 …ell($file_handle) ); //File pointer position after read operation, expected at the end of the file
26 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
[all …]
H A D007_variation7.phpt6 /* Test fopen() and fclose(): Opening the file in "x" mode,
7 checking for the file creation, write & read operations,
8 checking for the file pointer position,
9 checking for the warning msg when trying to open an existing file in "x" mode,
14 $file = $file_path."/007_variation7.tmp";
17 $file_handle = fopen($file, "x"); //opening the non-existing file in "x" mode, file will be created
20 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
22 …ll($file_handle) ); //File pointer position after write operation, expected at the end of the file
26 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
28 $file_handle = fopen($file, "x"); //Opening the existing data file in 'x' mode to check for the wa…
[all …]
H A Dlstat_stat_variation4.phpt2 Test lstat() and stat() functions: usage variations - effects of touch() on file
9 /* test the effects of touch() on stats of file */
12 require "$file_path/file.inc";
15 /* create temp file */
18 $fp = fopen($file_name, "w"); // temp file
21 // touch a file check stat, there should be difference in atime
22 echo "*** Testing stat() for file after using touch() on the file ***\n";
48 *** Testing stat() for file after using touch() on the file ***
H A Dfgetcsv_variation13.phpt27 echo "Error: failed to create file $filename!\n";
34 // else rewind the file pointer to beginning of the file
39 // rewind the file pointer to bof
49 // check the file pointer position and if eof
53 // close the file
55 //delete file
64 -- Testing fgetcsv() with file opened using r mode --
72 -- Testing fgetcsv() with file opened using rb mode --
80 -- Testing fgetcsv() with file opened using rt mode --
88 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Dfgetcsv_variation20.phpt29 echo "Error: failed to create file $filename!\n";
36 // else rewind the file pointer to beginning of the file
41 // rewind the file pointer to bof
52 // check the file pointer position and if eof
56 // close the file
58 //delete file
67 -- Testing fgetcsv() with file opened using r mode --
75 -- Testing fgetcsv() with file opened using rb mode --
83 -- Testing fgetcsv() with file opened using rt mode --
91 -- Testing fgetcsv() with file opened using r+ mode --
[all …]
H A Dstat_variation6-win32.phpt2 Test stat() functions: usage variations - changing permissions of dir/file
12 /* test the effects on the stats of dir/file for changing permissions of dir/file */
16 require "$file_path/file.inc";
19 /* create temp file and directory */
24 $file_handle = fopen($filename, "w"); // temp file
28 // checking stat() on file
29 echo "\n*** Testing stat() on file with miscellaneous file permission and content ***\n";
47 echo "\n*** Testing stat() on directory with miscellaneous file permission ***\n";
73 *** Testing stat() on file with miscellaneous file permission and content ***
79 *** Testing stat() on directory with miscellaneous file permission ***
/php-src/ext/session/tests/
H A Dsession_basic3.phpt37 <a href="file.php">test</a>
38 <a href="file.php?foo">test</a>
39 <a href="file.php?foo=var">test</a>
78 <a href="//php.net/file.php">test</a>
128 <a href="file.php">test</a>
129 <a href="file.php?foo">test</a>
130 <a href="file.php?foo=var">test</a>
132 <a href="../file.php">test</a>
133 <a href="../file.php?foo">test</a>
134 <a href="../file.php?foo=var">test</a>
[all …]
H A Dsession_basic5.phpt59 <a href="file.php">test</a>
60 <a href="file.php?foo">test</a>
61 <a href="file.php?foo=var">test</a>
62 <a href="file.php?foo=var#bar">test</a>
63 <a href="../file.php">test</a>
64 <a href="../file.php?foo">test</a>
65 <a href="../file.php?foo=var">test</a>
66 <a href="../file.php?foo=var#bar">test</a>
108 <a href="//php.net/file.php">test</a>
189 <a href="//bad.com/file.php">test</a>
[all …]
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_stmt_blobfromstream.phpt15 $fp = fopen($file, 'w');
25 if (!file_exists($file))
28 unlink($file);
36 @unlink($file);
38 if (file_exists($file)) {
43 $fp = fopen($file, 'w');
45 printf("[%03d + 2] Cannot create test file '%s'\n", $offset, $file);
51 if (!file_exists($file)) {
52 printf("[%03d + 3] Failed to create test file '%s'\n", $offset, $file);
64 $fp = fopen($file, 'r');
[all …]
/php-src/ext/standard/tests/general_functions/
H A Dbug40752.phpt6 $file = __DIR__."/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-src/ext/standard/tests/dir/
H A Dreaddir_basic-win32-mb.phpt17 // include the file.inc for Function: function create_files()
19 include(__DIR__."/../file/file.inc");
28 while( FALSE !== ($file = readdir($dh)) ) {
29 $a[] = $file;
32 foreach($a as $file) {
33 var_dump($file);
39 while( FALSE !== ( $file = readdir() ) ) {
40 $a[] = $file;
43 foreach($a as $file) {
44 var_dump($file);
H A Drewinddir_variation3.phpt2 Test rewinddir() function : usage variations - file pointers
6 * Pass a file pointer to rewinddir() to test behaviour
11 echo "\n-- Open a file using fopen --\n";
23 echo "\n-- Check if rewinddir() has repositioned the file pointer --\n";
25 echo "rewinddir() works on file pointers\n";
27 echo "rewinddir() does not work on file pointers\n";
33 -- Open a file using fopen --
37 -- Check if rewinddir() has repositioned the file pointer --
38 rewinddir() does not work on file pointers
/php-src/ext/spl/tests/
H A DDirectoryIterator_getExtension_basic.phpt12 foreach ($files as $file) {
13 touch($dir . $file);
19 foreach (new DirectoryIterator($dir) as $file) {
20 if ($file->isDot()) {
24 $dit_exts[] = $file->getExtension();
25 $nfo_exts[] = pathinfo($file->getFilename(), PATHINFO_EXTENSION);
35 foreach ($files as $file) {
36 unlink($dir . $file);
/php-src/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-src/ext/openssl/tests/
H A Dopenssl_error_string_basic_openssl3.phpt55 // common output file
59 // invalid file for is the test dir as writing file to existing dir should always fail
61 // crt file
63 // csr file
65 // public key file
67 // private key file
105 // file for pkey (file:///) fails when opennig (BIO_new_file)
111 // file to export cannot be written
130 // file for x509 (file:///) fails when opennig (BIO_new_file)
136 // file to export cannot be written
[all …]
H A Dopenssl_error_string_basic.phpt55 // common output file
59 // invalid file for is the test dir as writing file to existing dir should always fail
61 // crt file
63 // csr file
65 // public key file
67 // private key file
101 // file for pkey (file:///) fails when opennig (BIO_new_file)
107 // file to export cannot be written
129 // file for x509 (file:///) fails when opennig (BIO_new_file)
135 // file to export cannot be written
[all …]
/php-src/ext/standard/tests/file/windows_mb_path/
H A Dbug75063_utf8.phpt2 Bug #75063 Many filesystem-related functions do not work with multibyte file names, UTF-8
15 /* This file is in UTF-8. */
40 while ((\$file = readdir(\$dh)) !== false) {
41 if ("." == \$file || ".." == \$file) continue;
42 var_dump(\$file);
62 foreach ($obj as $file) {
63 if ("." == $file || ".." == $file) continue;
64 unlink($d0 . DIRECTORY_SEPARATOR . $file);
/php-src/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-src/ext/phar/tests/
H A Dbug76584.phpt11 $phar->addFromString('76584.txt', 'This is a test file.');
12 $file = $phar['76584.txt'];
13 var_dump($file->compress(Phar::GZ));
14 var_dump($file->isCompressed());
15 var_dump($file->decompress());
16 var_dump($file->isCompressed());
27 This is a test file.

Completed in 28 milliseconds

12345678910>>...89