/php-src/ext/standard/tests/file/ |
H A D | 007_variation5.phpt | 2 Test fopen and fclose() functions - usage variations - "a" mode 6 /* Test fopen() and fclose(): Opening the file in "a" mode, 18 echo "*** Test fopen() & fclose() functions: with 'a' mode ***\n"; 19 $file_handle = fopen($file, "a"); //opening the file "a" mode 31 fclose( fopen($file, "a") ); //Opening the non-existing file in "a" mode, which will be created 40 *** Test fopen() & fclose() functions: with 'a' mode ***
|
H A D | fwrite.phpt | 8 $fp = fopen($filename, "w"); 12 $fp = fopen($filename, "r"); 15 $fp = fopen($filename, "w");
|
H A D | fopen_variation7.phpt | 2 Test fopen() function : variation: use include path create a file (relative) 27 $h = fopen($tmpfile, "w", true); 32 $h = @fopen($tmpfile, "r"); 42 $h = @fopen($dir1.'/'.$tmpfile, "r");
|
H A D | fopen_variation9.phpt | 2 Test fopen() function : variation: use include path and stream context create a file, relative path 27 $h = fopen($tmpfile, "w", true); 32 $h = @fopen($tmpfile, "r"); 42 $h = @fopen('dir1/'.$tmpfile, "r");
|
H A D | 007_variation4.phpt | 2 Test fopen and fclose() functions - usage variations - "w+" mode 6 /* Test fopen() and fclose(): Opening the file in "w+" mode, 19 echo "*** Test fopen() & fclose() functions: with 'w+' mode ***\n"; 20 $file_handle = fopen($file, "w+"); //opening the file "w+" mode 34 fclose( fopen($file, "w+") ); //Opening the existing data file again in "w+" mode 39 fclose( fopen($file, "w+") ); //Opening the non-existing file in "w+" mode, which will be created 48 *** Test fopen() & fclose() functions: with 'w+' mode ***
|
H A D | stream_rfc2397_002.phpt | 26 $stream = fopen($stream, 'r'); 54 Warning: fopen(data://): Failed to open stream: rfc2397: no comma in URL in %sstream_rfc2397_002.ph… 73 Warning: fopen(data://;base64): Failed to open stream: rfc2397: no comma in URL in %sstream_rfc2397… 75 Warning: fopen(data://foo,): Failed to open stream: rfc2397: illegal media type in %sstream_rfc2397… 77 Warning: fopen(data://foo=bar,): Failed to open stream: rfc2397: illegal media type in %sstream_rfc… 98 Warning: fopen(data://text/plain;foo,): Failed to open stream: rfc2397: illegal parameter in %sstre… 121 Warning: fopen(data://text/plain;foo=bar;bla,): Failed to open stream: rfc2397: illegal parameter i… 144 Warning: fopen(data://text/plain;foo=bar;bar=baz): Failed to open stream: rfc2397: no comma in URL …
|
H A D | 007_variation13-win32.phpt | 2 Test fopen and fclose() functions - usage variations - "at" mode 11 /* Test fopen() and fclose(): Opening the file in "at" mode, 23 echo "*** Test fopen() & fclose() functions: with 'at' mode ***\n"; 24 $file_handle = fopen($file, "at"); //opening the file "at" mode 36 fclose( fopen($file, "at") ); //Opening the non-existing file in "at" mode, which will be created 45 *** Test fopen() & fclose() functions: with 'at' mode ***
|
H A D | 007_variation13.phpt | 2 Test fopen and fclose() functions - usage variations - "at" mode 11 /* Test fopen() and fclose(): Opening the file in "at" mode, 23 echo "*** Test fopen() & fclose() functions: with 'at' mode ***\n"; 24 $file_handle = fopen($file, "at"); //opening the file "at" mode 36 fclose( fopen($file, "at") ); //Opening the non-existing file in "at" mode, which will be created 45 *** Test fopen() & fclose() functions: with 'at' mode ***
|
H A D | fopen_variation16.phpt | 2 Test fopen() function : variation: use include path create and read a file (relative) 35 $h = fopen($tmpfile, "w+", true); 39 $h = @fopen($dir1.'/'.$tmpfile, "r"); 48 $h = fopen($tmpfile, "r", true);
|
H A D | fopen_variation17.phpt | 2 Test fopen() function : variation: use include path create and read a file (relative) 34 $h = fopen($tmpfile, "w+", true); 38 $h = @fopen($dir1.'/'.$tmpfile, "r"); 47 $h = fopen($tmpfile, "r", true);
|
H A D | ftruncate_bug76803.phpt | 8 $f = fopen($fn, "w"); 15 $f = fopen($fn, "w"); 21 $f = fopen('php://memory', 'w+');
|
H A D | bug74719.phpt | 2 Bug #74719 Allow NULL as context, testing fopen, rename, unlink, mkdir and rmdir 8 // fopen 10 $h = fopen($tmpFile, "w", false, NULL);
|
H A D | 007_variation18.phpt | 2 Test fopen and fclose() functions - usage variations - "r+b" mode 6 /* Test fopen() and fclose(): Opening the file in "r+b" mode, 18 echo "*** Test fopen() & fclose() functions: with 'r+b' mode ***\n"; 19 $file_handle = fopen($file, "r+b"); //opening the file in "r+b" mode 36 *** Test fopen() & fclose() functions: with 'r+b' mode ***
|
H A D | 007_variation2.phpt | 2 Test fopen and fclose() functions - usage variations - "r+" mode 6 /* Test fopen() and fclose(): Opening the file in "r+" mode, 18 echo "*** Test fopen() & fclose() functions: with 'r+' mode ***\n"; 19 $file_handle = fopen($file, "r+"); //opening the file in "r+" mode 36 *** Test fopen() & fclose() functions: with 'r+' mode ***
|
H A D | 007_variation10.phpt | 2 Test fopen and fclose() functions - usage variations - "r+t" mode 6 /* Test fopen() and fclose(): Opening the file in "r+t" mode, 18 echo "*** Test fopen() & fclose() functions: with 'r+t' mode ***\n"; 19 $file_handle = fopen($file, "r+t"); //opening the file in "r+t" mode 36 *** Test fopen() & fclose() functions: with 'r+t' mode ***
|
H A D | 007_variation12-win32.phpt | 2 Test fopen and fclose() functions - usage variations - "w+t" mode 11 /* Test fopen() and fclose(): Opening the file in "w+t" mode, 24 echo "*** Test fopen() & fclose() functions: with 'w+t' mode ***\n"; 25 $file_handle = fopen($file, "w+t"); //opening the file "w+t" mode 39 fclose( fopen($file, "w+t") ); //Opening the existing data file again in "w+t" mode 44 fclose( fopen($file, "w+t") ); //Opening the non-existing file in "w+t" mode, which will be created 53 *** Test fopen() & fclose() functions: with 'w+t' mode ***
|
/php-src/ext/zlib/tests/ |
H A D | zlib_filter_inflate2.phpt | 12 $fp = fopen(__DIR__ . '/test.txt.gz', 'r'); 17 $fp = fopen(__DIR__ . '/test.txt.gz', 'r'); 19 $fp = fopen(__DIR__ . '/test.txt.gz', 'r'); 25 $fp = fopen(__DIR__ . '/test.txt.gz', 'r');
|
/php-src/tests/output/ |
H A D | stream_isatty_out.phpt | 18 STDIN (fopen): bool(true) 21 STDOUT (fopen): bool(false) 24 STDERR (fopen): bool(true)
|
H A D | stream_isatty_err.phpt | 18 STDIN (fopen): bool(true) 21 STDOUT (fopen): bool(true) 24 STDERR (fopen): bool(false)
|
H A D | stream_isatty_in-err.phpt | 18 STDIN (fopen): bool(false) 21 STDOUT (fopen): bool(true) 24 STDERR (fopen): bool(false)
|
H A D | stream_isatty_in-out-err.phpt | 18 STDIN (fopen): bool(false) 21 STDOUT (fopen): bool(false) 24 STDERR (fopen): bool(false)
|
H A D | stream_isatty_in-out.phpt | 18 STDIN (fopen): bool(false) 21 STDOUT (fopen): bool(false) 24 STDERR (fopen): bool(true)
|
H A D | stream_isatty_out-err.phpt | 18 STDIN (fopen): bool(true) 21 STDOUT (fopen): bool(false) 24 STDERR (fopen): bool(false)
|
/php-src/ext/iconv/tests/ |
H A D | iconv_stream_filter_delimiter.phpt | 9 $fp = fopen(__DIR__.'/iconv_stream_filter.txt', 'rb'); 15 $fp = fopen(__DIR__.'/iconv_stream_filter.txt', 'rb'); 22 $fp = fopen(__DIR__.'/iconv_stream_filter.txt', 'rb'); 29 $fp = fopen(__DIR__.'/iconv_stream_filter.txt', 'rb');
|
/php-src/ext/standard/tests/streams/ |
H A D | bug47997.phpt | 8 $in = fopen('data://text/plain,', 'rb+'); 9 $out = fopen('php://memory', 'wb+');
|