/PHP-8.3/tests/security/ |
H A D | open_basedir_fopen.phpt | 9 test_open_basedir_before("fopen"); 11 var_dump(fopen("../bad", "r")); 12 var_dump(fopen("../bad/bad.txt", "r")); 13 var_dump(fopen("..", "r")); 14 var_dump(fopen("../", "r")); 15 var_dump(fopen("/", "r")); 16 var_dump(fopen("../bad/.", "r")); 18 var_dump(fopen("./../.", "r")); 21 var_dump(fopen("./ok.txt", "r")); 22 var_dump(fopen("ok.txt", "r")); [all …]
|
/PHP-8.3/tests/output/ |
H A D | stream_isatty.inc | 7 'STDIN (fopen)' => fopen('php://stdin', 'rb'), 8 'STDIN (php://fd/0)' => fopen('php://fd/0', 'rb'), 10 'STDOUT (fopen)' => fopen('php://stdout', 'wb'), 11 'STDOUT (php://fd/1)' => fopen('php://fd/1', 'wb'), 13 'STDERR (fopen)' => fopen('php://stderr', 'wb'), 14 'STDERR (php://fd/2)' => fopen('php://fd/2', 'wb'), 15 'Invalid stream (php://temp)' => fopen('php://temp', 'wb'), 16 'Invalid stream (php://input)' => fopen('php://input', 'wb'), 17 'Invalid stream (php://memory)' => fopen('php://memory', 'wb'), 18 'File stream' => $closeMe = fopen(__FILE__, 'rb'),
|
H A D | sapi_windows_vt100_support.inc | 30 'STDIN (fopen)' => fopen('php://stdin', 'rb'), 31 'STDIN (php://fd/0)' => fopen('php://fd/0', 'rb'), 33 'STDOUT (fopen)' => fopen('php://stdout', 'wb'), 34 'STDOUT (php://fd/1)' => fopen('php://fd/1', 'wb'), 36 'STDERR (fopen)' => fopen('php://stderr', 'wb'), 37 'STDERR (php://fd/2)' => fopen('php://fd/2', 'wb'), 38 'Invalid stream (php://temp)' => fopen('php://temp', 'wb'), 39 'Invalid stream (php://input)' => fopen('php://input', 'wb'), 40 'Invalid stream (php://memory)' => fopen('php://memory', 'wb'), 41 'File stream' => $closeMe = fopen(__FILE__, 'rb'),
|
/PHP-8.3/ext/standard/tests/file/ |
H A D | php_fd_wrapper_03.phpt | 5 fopen("php://fd", "w"); 6 fopen("php://fd/", "w"); 7 fopen("php://fd/-2", "w"); 8 fopen("php://fd/1/", "w"); 13 Warning: fopen(): Invalid php:// URL specified in %s on line %d 15 Warning: fopen(php://fd): Failed to open stream: operation failed in %s on line 2 17 Warning: fopen(php://fd/): Failed to open stream: php://fd/ stream must be specified in the form ph… 19 Warning: fopen(php://fd/-2): Failed to open stream: The file descriptors must be non-negative numbe… 21 Warning: fopen(php://fd/1/): Failed to open stream: php://fd/ stream must be specified in the form …
|
H A D | fopen_variation6.phpt | 2 Test fopen() function : variation: use include path and stream context relative/absolute file 7 echo "*** Testing fopen() : variation ***\n"; 11 $h = fopen($absfile, "w"); 15 $h = fopen($relfile, "w"); 20 $h = fopen($absfile, "r", true, $ctx); 25 $h = fopen($relfile, "r", true, $ctx); 34 *** Testing fopen() : variation ***
|
H A D | fopen_variation14-win32.phpt | 2 Test fopen() function : variation: file uri, no use include path 12 echo "*** Testing fopen() : variation ***\n"; 14 // fopen with interesting windows paths. 55 $h = fopen($absFile, 'w'); 59 $h = fopen($fileURI, 'r'); 73 $h = fopen($fileURI, 'w'); 78 $h = fopen($absFile, 'r'); 96 *** Testing fopen() : variation *** 99 Warning: fopen(): Remote host file access not supported, file://fopen14.tmpDir\fopen_variation14.tm… 104 Warning: fopen(): Remote host file access not supported, file://fopen14.tmpDir\fopen_variation14.tm… [all …]
|
H A D | fopen_variation15-win32.phpt | 2 Test fopen() function : variation: file uri, use include path = true 12 echo "*** Testing fopen() : variation ***\n"; 14 // fopen with interesting windows paths. 59 $h = fopen($absFile, 'w'); 63 $h = fopen($fileURI, 'r', true); 77 $h = fopen($fileURI, 'w', true); 82 $h = fopen($absFile, 'r'); 100 *** Testing fopen() : variation *** 103 Warning: fopen(): Remote host file access not supported, file://fopen15.tmpDir\fopen_variation15.tm… 108 Warning: fopen(): Remote host file access not supported, file://fopen15.tmpDir\fopen_variation15.tm… [all …]
|
H A D | fopen_variation14.phpt | 2 Test fopen() function : variation: file uri, no use include path 12 echo "*** Testing fopen() : variation ***\n"; 14 // fopen with interesting windows paths. 47 $h = fopen($absFile, 'w'); 51 $h = fopen($fileURI, 'r'); 65 $h = fopen($fileURI, 'w'); 70 $h = fopen($absFile, 'r'); 88 *** Testing fopen() : variation *** 91 Warning: fopen(): Remote host file access not supported, file://fopen14.tmpDir/fopen_variation14.tm… 96 Warning: fopen(): Remote host file access not supported, file://fopen14.tmpDir/fopen_variation14.tm… [all …]
|
H A D | fopen_variation15.phpt | 2 Test fopen() function : variation: file uri, use include path = true 12 echo "*** Testing fopen() : variation ***\n"; 14 // fopen with interesting windows paths. 51 $h = fopen($absFile, 'w'); 55 $h = fopen($fileURI, 'r', true); 69 $h = fopen($fileURI, 'w', true); 74 $h = fopen($absFile, 'r'); 92 *** Testing fopen() : variation *** 95 Warning: fopen(): Remote host file access not supported, file://fopen15.tmpDir/fopen_variation15.tm… 100 Warning: fopen(): Remote host file access not supported, file://fopen15.tmpDir/fopen_variation15.tm… [all …]
|
H A D | bug76735.phpt | 2 Bug #76735 (Incorrect message in fopen on invalid mode) 5 fopen(__FILE__, 'Q'); 8 Warning: fopen(%s): Failed to open stream: `Q' is not a valid mode for fopen in %s on line %d
|
H A D | fopen_variation10-win32.phpt | 2 Test fopen() function : variation: interesting paths, no use include path 17 echo "*** Testing fopen() : variation ***\n"; 19 // fopen with interesting windows paths. 46 $h = fopen($firstfile, 'w'); 50 $h = fopen($secondfile, 'w'); 54 $h = fopen($thirdfile, 'w'); 61 $h = fopen($toFind, 'r'); 81 *** Testing fopen() : variation *** 91 Warning: fopen(c\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on … 96 Warning: fopen(\\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on … [all …]
|
H A D | fopen_variation11-win32.phpt | 2 Test fopen() function : variation: interesting paths, use include path = true 16 echo "*** Testing fopen() : variation ***\n"; 18 // fopen with interesting windows paths. 45 $h = fopen($firstfile, 'w'); 49 $h = fopen($secondfile, 'w'); 53 $h = fopen($thirdfile, 'w'); 60 $h = fopen($toFind, 'r', true); 79 *** Testing fopen() : variation *** 89 Warning: fopen(c\fopen_variation11.tmp): Failed to open stream: No such file or directory in %s on … 94 Warning: fopen(\\FOPEN_VARIATION11.TMP): Failed to open stream: No such file or directory in %s on … [all …]
|
H A D | stream_001.phpt | 7 var_dump(fopen("file://".__FILE__, "r")); 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 D | fopen_variation13.phpt | 2 Test fopen() function : variation: use include path create a file (absolute) 9 echo "*** Testing fopen() : variation ***\n"; 26 $h = fopen($absFile, "w", true); 31 $h = fopen($absFile, "r"); 45 *** Testing fopen() : variation ***
|
H A D | stream_copy_to_stream.phpt | 10 $src = fopen($initial_file, 'r'); 13 $dest = fopen($new_file, 'w'); 24 $src = fopen($initial_file, 'r'); 27 $dest = fopen($new_file, 'w'); 41 $src = fopen($initial_file, 'r'); 44 $dest = fopen($new_file, 'w'); 59 $src = fopen($initial_file, 'r'); 61 $dest = fopen($new_file, 'w'); 78 $dest = fopen($new_file, 'w'); 96 $dest = fopen($new_file, 'w'); [all …]
|
H A D | fscanf.phpt | 10 $fp = fopen($filename, "rt"); 15 $fp = fopen($filename, "rt"); 20 $fp = fopen($filename, "rt"); 32 $fp = fopen($filename, "rt"); 44 $fp = fopen($filename, "rt"); 57 $fp = fopen($filename, "rt"); 64 $fp = fopen($filename, "rt");
|
H A D | fopen_variation5.phpt | 2 Test fopen() function : variation: use include path and stream context (absolute directories in pat… 56 $h = fopen($secondFile, "w"); 62 $h = fopen($filename, $mode, true); 68 $h = fopen($firstFile, "w"); 73 $h = fopen($filename, $mode, true); 79 $h = fopen($filename, "w"); 84 $h = fopen($filename, $mode, true); 93 $h = fopen($filename, $mode, true); 99 $h = fopen($scriptFile, "w"); 104 $h = fopen($filename, $mode, true);
|
H A D | fopen_variation8.phpt | 2 Test fopen() function : variation: use include path and stream context (relative directories in pat… 55 $h = fopen($secondFile, "w"); 61 $h = fopen($filename, $mode, true); 67 $h = fopen($firstFile, "w"); 72 $h = fopen($filename, $mode, true); 78 $h = fopen($filename, "w"); 83 $h = fopen($filename, $mode, true); 92 $h = fopen($filename, $mode, true); 98 $h = fopen($scriptFile, "w"); 103 $h = fopen($filename, $mode, true);
|
H A D | ftruncate.phpt | 10 $fp = fopen($filename, "r"); 15 $fp = fopen($filename, "w"); 22 $fp = fopen($filename, "a"); 27 $fp = fopen($filename, "a"); 34 $fp = fopen($filename, "a");
|
/PHP-8.3/ext/bz2/tests/ |
H A D | 002.phpt | 10 $fp = fopen("bz_open_002.txt", "w"); 13 $fp = fopen("bz_open_002.txt", "r"); 17 $fp = fopen("bz_open_002.txt", "x"); 21 $fp = fopen("bz_open_002.txt", "x"); 24 $fp = fopen("bz_open_002.txt", "rb"); 27 $fp = fopen("bz_open_002.txt", "wb"); 30 $fp = fopen("bz_open_002.txt", "br"); 37 $fp = fopen("bz_open_002.txt", "br"); 44 $fp = fopen("bz_open_002.txt", "r"); 47 $fp = fopen("bz_open_002.txt", "w"); [all …]
|
/PHP-8.3/sapi/cli/tests/ |
H A D | gh8827-002.phpt | 15 $stdin = fopen('php://stdin', 'r'); 16 $stdout = fopen('php://stdout', 'r'); 17 $stderr = fopen('php://stderr', 'r'); 25 var_dump(@fopen('php://stdin', 'r')); 29 var_dump(@fopen('php://stderr', 'a')); 33 var_dump(@fopen('php://stdout', 'a'));
|
/PHP-8.3/ext/gd/libgd/ |
H A D | gdtest.c | 38 in = fopen (argv[1], "rb"); in main() 60 out = fopen (of, "wb"); in main() 64 in = fopen (of, "rb"); in main() 92 out = fopen (of, "wb"); in main() 96 in = fopen (of, "rb"); in main() 127 out = fopen (of, "wb"); in main() 131 in = fopen (of, "rb"); in main() 161 in = fopen (argv[1], "rb"); in main() 184 out = fopen (of, "wb"); in main() 189 in = fopen (of, "rb"); in main() [all …]
|
/PHP-8.3/ext/phar/tests/ |
H A D | fopen_edgecases2.phpt | 2 Phar: test edge cases of fopen() function interception #2 14 fopen(array(), 'r'); 21 $a = fopen($fname, 'rb'); 28 $a = fopen("fopen_edgecases2.txt", "rb", false, $context); 31 fopen("../oops", "r"); 40 fopen(): Argument #1 ($filename) must be of type string, array given 44 Warning: fopen(phar://%sfopen_edgecases2.phar.php/oops): Failed to open stream: phar error: path "o…
|
H A D | fopen.phpt | 2 Phar: test fopen() interception 11 $a = fopen(__FILE__, 'rb'); // this satisfies 1 line of code coverage 17 $a = fopen("dir/file1.txt", "r"); 20 $a = fopen("file1.txt", "r", true); 23 $a = fopen("notfound.txt", "r", true); 38 Warning: fopen(notfound.txt): Failed to open stream: No such file or directory in phar://%sfopen.ph…
|
H A D | phar_stub.phpt | 22 $fp = fopen($fname, 'rb'); 31 $fp = fopen($fname, 'rb'); 37 $fp = fopen($fname2, 'wb'); 40 $fp = fopen($fname2, 'rb'); 46 $fp = fopen($fname, 'rb'); 50 $fp = fopen($fname2, 'ab'); 55 $fp = fopen($fname2, 'rb'); 69 $fp = fopen($fname, 'rb'); 73 $fp = fopen($fname2, 'rb'); 79 $fp = fopen($fname, 'rb'); [all …]
|