/php-src/Zend/tests/ |
H A D | bug68887.phpt | 5 fclose(fopen("php://temp","w+")); 7 fclose(fopen("php://temp","w+")); 9 fclose(fopen("php://temp","w+"));
|
H A D | bug30998.phpt | 14 $f = fopen("/tmp/blah", "r"); 17 fopen(/tmp/blah): Failed to open stream: %s (2) in %s:%d 19 Warning: fopen(/tmp/blah): Failed to open stream: %s in %s on line %d
|
/php-src/ext/standard/tests/file/ |
H A D | 007_variation15.phpt | 2 Test fopen and fclose() functions - usage variations - "xt" mode 6 fopen() function: 15 /* Test fopen() and fclose(): Opening the file in "xt" mode, 25 echo "*** Test fopen() & fclose() functions: with 'xt' mode ***\n"; 26 $file_handle = fopen($file, "xt"); //opening the non-existing file in "xt" mode, file will be crea… 37 $file_handle = fopen($file, "xt"); //Opening the existing data file in 'xt' mode to check for the … 45 *** Test fopen() & fclose() functions: with 'xt' mode *** 58 Warning: fopen(%s): Failed to open stream: File exists in %s on line %d
|
H A D | fopen_variation19.phpt | 2 Test fopen() function : variation: test opening linked files 18 echo "*** Testing fopen() : variation ***\n"; 23 $h = fopen($realFilename, "w"); 65 $h = fopen($file, 'r'); 72 $h = fopen($file, 'a+'); 81 $h = fopen($file, 'w'); 90 *** Testing fopen() : variation ***
|
H A D | fopen_variation12.phpt | 2 Test fopen() function : variation: use include path (path is bad) create a file (relative) 13 $h = fopen($tmpfile, "w", true); 18 $h = @fopen($tmpfile, "r"); 30 $h = @fopen($scriptDirFile, "r");
|
H A D | 007_variation8.phpt | 2 Test fopen and fclose() functions - usage variations - "x+" mode 6 /* Test fopen() and fclose(): Opening the file in "x+" mode, 16 echo "*** Test fopen() & fclose() functions: with 'x+' mode ***\n"; 17 $file_handle = fopen($file, "x+"); //opening the non-existing file in "x+" mode, file will be crea… 28 $file_handle = fopen($file, "x+"); //Opening the existing data file in "x+" mode to check for the … 36 *** Test fopen() & fclose() functions: with 'x+' mode *** 49 Warning: fopen(%s): Failed to open stream: File exists in %s on line %d
|
H A D | stream_supports_lock.phpt | 7 $fp = fopen(__FILE__, "r"); 12 $fp = fopen("file://" . __FILE__, "r"); 17 $fp = fopen("php://memory", "r"); 22 $fp = fopen('data://text/plain,foobar', 'r');
|
H A D | 007_variation16.phpt | 2 Test fopen and fclose() functions - usage variations - "x+t" mode 6 /* Test fopen() and fclose(): Opening the file in "x+t" mode, 16 echo "*** Test fopen() & fclose() functions: with 'x+t' mode ***\n"; 17 $file_handle = fopen($file, "x+t"); //opening the non-existing file in "x+t" mode, file will be cr… 28 $file_handle = fopen($file, "x+t"); //Opening the existing data file in "x+t" mode to check for th… 36 *** Test fopen() & fclose() functions: with 'x+t' mode *** 49 Warning: fopen(%s): Failed to open stream: File exists in %s on line %d
|
H A D | 007_variation23.phpt | 2 Test fopen and fclose() functions - usage variations - "xb" mode 6 /* Test fopen() and fclose(): Opening the file in "xb" mode, 16 echo "*** Test fopen() & fclose() functions: with 'xb' mode ***\n"; 17 $file_handle = fopen($file, "xb"); //opening the non-existing file in "xb" mode, file will be crea… 28 $file_handle = fopen($file, "xb"); //Opening the existing data file in 'xb' mode to check for the … 36 *** Test fopen() & fclose() functions: with 'xb' mode *** 49 Warning: fopen(%s): Failed to open stream: File exists in %s on line %d
|
H A D | 007_variation24.phpt | 2 Test fopen and fclose() functions - usage variations - "x+b" mode 6 /* Test fopen() and fclose(): Opening the file in "x+b" mode, 16 echo "*** Test fopen() & fclose() functions: with 'x+b' mode ***\n"; 17 $file_handle = fopen($file, "x+b"); //opening the non-existing file in "x+b" mode, file will be cr… 28 $file_handle = fopen($file, "x+b"); //Opening the existing data file in "x+b" mode to check for th… 36 *** Test fopen() & fclose() functions: with 'x+b' mode *** 49 Warning: fopen(%s): Failed to open stream: File exists in %s on line %d
|
H A D | 007_variation7.phpt | 2 Test fopen and fclose() functions - usage variations - "x" mode 6 /* Test fopen() and fclose(): Opening the file in "x" mode, 16 echo "*** Test fopen() & fclose() functions: with 'x' mode ***\n"; 17 $file_handle = fopen($file, "x"); //opening the non-existing file in "x" mode, file will be created 28 $file_handle = fopen($file, "x"); //Opening the existing data file in 'x' mode to check for the wa… 36 *** Test fopen() & fclose() functions: with 'x' mode *** 49 Warning: fopen(%s): Failed to open stream: File exists in %s on line %d
|
H A D | 007_variation14.phpt | 2 Test fopen and fclose() functions - usage variations - "a+t" mode 6 /* Test fopen() and fclose(): Opening the file in "a+t" mode, 18 echo "*** Test fopen() & fclose() functions: with 'a+t' mode ***\n"; 19 $file_handle = fopen($file, "a+t"); //opening the file "a+t" mode 30 fclose( fopen($file, "a+t") ); //Opening the non-existing file in "a+t" mode, which will be created 39 *** Test fopen() & fclose() functions: with 'a+t' mode ***
|
H A D | 007_variation22.phpt | 2 Test fopen and fclose() functions - usage variations - "a+b" mode 6 /* Test fopen() and fclose(): Opening the file in "a+b" mode, 18 echo "*** Test fopen() & fclose() functions: with 'a+b' mode ***\n"; 19 $file_handle = fopen($file, "a+b"); //opening the file "a+b" mode 30 fclose( fopen($file, "a+b") ); //Opening the non-existing file in "a+b" mode, which will be created 39 *** Test fopen() & fclose() functions: with 'a+b' mode ***
|
H A D | 007_variation6.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 30 fclose( fopen($file, "a+") ); //Opening the non-existing file in "a+" mode, which will be created 39 *** Test fopen() & fclose() functions: with 'a+' mode ***
|
H A D | fopen_unlink.phpt | 2 Test fopen() function : check fopen()ed descriptor is usable after the fs object is removed 8 $f = fopen($p, 'w+'),
|
H A D | 007_variation17.phpt | 2 Test fopen and fclose() functions - usage variations - "rb" mode 6 /* Test fopen() and fclose(): Opening the file in "rb" mode, 18 echo "*** Test fopen() & fclose() functions: with 'rb' mode ***\n"; 19 $file_handle = fopen($file, "rb"); //opening the file in "rb" mode 34 *** Test fopen() & fclose() functions: with 'rb' mode ***
|
H A D | 007_variation1.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 34 *** Test fopen() & fclose() functions: with 'r' mode ***
|
H A D | 007_variation9.phpt | 2 Test fopen and fclose() functions - usage variations - "rt" mode 6 /* Test fopen() and fclose(): Opening the file in "rt" mode, 18 echo "*** Test fopen() & fclose() functions: with 'rt' mode ***\n"; 19 $file_handle = fopen($file, "rt"); //opening the file in "rt" mode 34 *** Test fopen() & fclose() functions: with 'rt' mode ***
|
H A D | bug39551.phpt | 6 $bucket = stream_bucket_new(fopen('php://temp', 'w+'), ''); 12 $bucket = stream_bucket_new(fopen('php://temp', 'w+'), ''); 19 stream_filter_append($s = fopen('php://temp', 'r+'), 'bucketfault');
|
H A D | 007_variation21.phpt | 2 Test fopen and fclose() functions - usage variations - "ab" mode 6 /* Test fopen() and fclose(): Opening the file in "ab" mode, 18 echo "*** Test fopen() & fclose() functions: with 'ab' mode ***\n"; 19 $file_handle = fopen($file, "ab"); //opening the file "ab" mode 31 fclose( fopen($file, "ab") ); //Opening the non-existing file in "ab" mode, which will be created 40 *** Test fopen() & fclose() functions: with 'ab' mode ***
|
/php-src/ext/standard/tests/dir/ |
H A D | closedir_variation3.phpt | 6 * Create a file pointer using fopen() then try to close it using closedir() 11 echo "\n-- Open a file using fopen() --\n"; 12 var_dump($fp = fopen(__FILE__, 'r')); 30 -- Open a file using fopen() --
|
/php-src/ext/gd/libgd/ |
H A D | gd2copypal.c | 22 in = fopen (argv[1], "rb"); in main() 36 in = fopen (argv[2], "rb"); in main() 52 out = fopen (argv[2], "wb"); in main()
|
/php-src/ext/phar/tests/ |
H A D | fopen_edgecases.phpt | 2 Phar: fopen/stat/fseek/unlink/rename edge cases 21 $a = fopen($pname . '/b/c.php', 'a'); 23 $a = fopen($pname . '.phar.gz', 'r'); 27 $a = fopen($pname . '/hi', 'w'); 31 $a = fopen($pname2 . '/hi', 'w'); 32 $a = fopen('phar://', 'r'); 33 $a = fopen('phar://foo.phar', 'r'); 36 $a = fopen($pname . '/hi', 'r'); 64 $a = fopen("./notfound.php", "r"); 83 Warning: fopen(phar://foo.phar): Failed to open stream: %s in %sfopen_edgecases.php on line %d [all …]
|
/php-src/sapi/cli/tests/ |
H A D | gh8827-001.phpt | 16 var_dump(@fopen('php://stdin', 'r')); 20 var_dump(@fopen('php://stderr', 'a')); 25 var_dump(@fopen('php://stdout', 'a'));
|
H A D | std_streams.phpt | 17 var_dump(ftell(fopen("php://stdin", "r"))); 18 var_dump(ftell(fopen("php://stderr", "w"))); 22 var_dump(ftell(fopen("php://stdout", "w")));
|