Home
last modified time | relevance | path

Searched refs:fwrite (Results 1 – 25 of 494) sorted by relevance

12345678910>>...20

/PHP-8.0/ext/standard/tests/file/
H A Dfwrite_error.phpt2 Test fwrite() function : error conditions
8 echo "*** Testing fwrite() : error conditions ***\n";
15 echo "-- Testing fwrite() with invalid length arguments --\n";
17 var_dump( fwrite($file_handle, $data, $len) );
19 var_dump( fwrite($file_handle, $data, $len) );
21 // fwrite() on a file handle which is already closed
25 var_dump(fwrite($file_handle,"data"));
38 *** Testing fwrite() : error conditions ***
39 -- Testing fwrite() with invalid length arguments --
42 -- Testing fwrite() with closed/unset file handle --
[all …]
H A Dfwrite.phpt2 fwrite() tests
6 $filename = __DIR__."/fwrite.dat";
9 var_dump(fwrite($fp, ""));
13 var_dump(fwrite($fp, "data"));
16 var_dump(fwrite($fp, "data", -1));
17 var_dump(fwrite($fp, "data", 100000));
20 var_dump(fwrite($fp, "data", -1));
30 Notice: fwrite(): Write of 4 bytes failed with errno=9 Bad file descriptor in %s on line %d
H A Dfwrite_variation1-win32-mb.phpt2 Test fwrite() function : usage variations - r, rb & rt modes
11 echo "*** Testing fwrite() various operations ***\n";
17 Test fwrite with file opened in mode : r,rb,rt
28 /* open the file using $files_modes and perform fwrite() on it */
49 var_dump( fwrite($file_handle, $data_to_be_written ));
53 // move the file pointer to end of the file and try fwrite()
56 var_dump( fwrite($file_handle, $data_to_be_written) ); // fwrite to fail
73 *** Testing fwrite() various operations ***
75 -- Testing fwrite() with file having content of type numeric --
125 -- Testing fwrite() with file having content of type text --
[all …]
H A Dfwrite_variation1.phpt2 Test fwrite() function : usage variations - r, rb & rt modes
5 echo "*** Testing fwrite() various operations ***\n";
11 Test fwrite with file opened in mode : r,rb,rt
21 /* open the file using $files_modes and perform fwrite() on it */
42 var_dump( fwrite($file_handle, $data_to_be_written ));
46 // move the file pointer to end of the file and try fwrite()
49 var_dump( fwrite($file_handle, $data_to_be_written) ); // fwrite to fail
65 *** Testing fwrite() various operations ***
67 -- Testing fwrite() with file having content of type numeric --
117 -- Testing fwrite() with file having content of type text --
[all …]
H A Dftruncate_bug76803.phpt9 fwrite($f, "Hello");
11 fwrite($f, "World");
16 fwrite($f, "Hello");
22 fwrite($f, 'Hello');
24 fwrite($f, 'World');
H A Dfread_fwrite_basic.phpt2 fread & fwrite - Test reading and writing using a single resource
19 fwrite($h, $out1);
22 fwrite($h, $out2);
26 fwrite($h, $out3);
38 fwrite($h, $out);
H A Dbug27508.phpt23 return fwrite($this->fp, $data);
59 fwrite($fp, "line1\n");
60 fwrite($fp, "line2\n");
61 fwrite($fp, "line3\n");
H A Dfwrite_variation2-win32.phpt2 Test fwrite() function : usage variations - r+, r+b & r+t modes
11 echo "*** Testing fwrite() various operations ***\n";
17 Test fwrite with file opened in mode : r+,r+b,r+t
28 /* open the file using $files_modes and perform fwrite() on it */
50 var_dump( fwrite($file_handle, $data_to_be_written, 400));
57 var_dump( fwrite($file_handle, $data_to_be_written, 200) );
65 var_dump( fwrite($file_handle, $data_to_be_written, 200) );
82 *** Testing fwrite() various operations ***
84 -- Testing fwrite() with file having content of type numeric --
137 -- Testing fwrite() with file having content of type text --
[all …]
H A Dfwrite_variation2.phpt2 Test fwrite() function : usage variations - r+, r+b & r+t modes
11 echo "*** Testing fwrite() various operations ***\n";
17 Test fwrite with file opened in mode : r+,r+b,r+t
28 /* open the file using $files_modes and perform fwrite() on it */
50 var_dump( fwrite($file_handle, $data_to_be_written, 400));
57 var_dump( fwrite($file_handle, $data_to_be_written, 200) );
65 var_dump( fwrite($file_handle, $data_to_be_written, 200) );
81 *** Testing fwrite() various operations ***
83 -- Testing fwrite() with file having content of type numeric --
136 -- Testing fwrite() with file having content of type text --
[all …]
H A Dfwrite_variation4-win32.phpt2 Test fwrite() function : usage variations - x, xb, xt, x+, x+b & x+t modes
11 echo "*** Testing fwrite() various operations ***\n";
17 Test fwrite with file opened in mode : x, xb, xt, x+, x+b, x+t
26 echo "\n-- Testing fwrite() with file having content of type ". $file_content_type ." --\n";
28 /* open the file using $files_modes and perform fwrite() on it */
47 var_dump( fwrite($file_handle,$data_to_be_written,400));
65 *** Testing fwrite() various operations ***
67 -- Testing fwrite() with file having content of type numeric --
117 -- Testing fwrite() with file having content of type text --
167 -- Testing fwrite() with file having content of type text_with_new_line --
[all …]
H A Dfwrite_variation4.phpt2 Test fwrite() function : usage variations - x, xb, xt, x+, x+b & x+t modes
11 echo "*** Testing fwrite() various operations ***\n";
17 Test fwrite with file opened in mode : x, xb, xt, x+, x+b, x+t
26 echo "\n-- Testing fwrite() with file having content of type ". $file_content_type ." --\n";
28 /* open the file using $files_modes and perform fwrite() on it */
47 var_dump( fwrite($file_handle,$data_to_be_written,400));
65 *** Testing fwrite() various operations ***
67 -- Testing fwrite() with file having content of type numeric --
117 -- Testing fwrite() with file having content of type text --
167 -- Testing fwrite() with file having content of type text_with_new_line --
[all …]
H A Dfwrite_basic-win32-mb.phpt2 Test fwrite() function : basic functionality
14 echo "*** Testing fwrite() basic operations ***\n";
16 test fwrite with file opened in mode : w,wb,wt,w+,w+b,w+t
30 /* open the file using $files_modes and perform fwrite() on it */
43 var_dump( fwrite($file_handle, $data_to_be_written, 100)); //int(100)
52 // fwrite() without length parameter
53 var_dump( fwrite($file_handle, $data_to_be_written)); //int(1024)
71 *** Testing fwrite() basic operations ***
73 -- Testing fwrite() with file having data of type numeric --
159 -- Testing fwrite() with file having data of type text --
[all …]
/PHP-8.0/ext/gd/tests/
H A Dbug72339.phpt15 fwrite($fh, "gd2\x00");
16 fwrite($fh, pack("n", 2));
17 fwrite($fh, pack("n", 1));
18 fwrite($fh, pack("n", 1));
19 fwrite($fh, pack("n", 0x40));
20 fwrite($fh, pack("n", 2));
21 fwrite($fh, pack("n", 0x5AA0)); // Chunks Wide
22 fwrite($fh, pack("n", 0x5B00)); // Chunks Vertically
23 fwrite($fh, str_repeat("\x41\x41\x41\x41", 0x1000000)); // overflow data
/PHP-8.0/sapi/cli/tests/
H A Dbug70470.phpt14 fwrite($fp, "GET / HTTP/1.1\r\n");
15 fwrite($fp, "Host: " . PHP_CLI_SERVER_HOSTNAME . "\r\n");
16 fwrite($fp, "Content");
19 fwrite($fp, "-Type: text/html; charset=UTF-8\r\n");
20 fwrite($fp, "Connection: clo");
23 fwrite($fp, "se\r\n\r\n");
/PHP-8.0/ext/standard/tests/network/
H A Dshutdown.phpt28 @fwrite($client1, "Client 1\n");
30 @fwrite($client1, "Error 1\n");
37 @fwrite($client2, "Client 2\n");
39 @fwrite($client2, "Error 2\n");
46 @fwrite($socket, fgets($socket));
47 @fwrite($socket, fgets($socket));
59 @fwrite($socket, fgets($socket));
60 @fwrite($socket, fgets($socket));
/PHP-8.0/ext/standard/tests/streams/
H A Dbug54623.phpt7 @fwrite($sock, "1");
10 @fwrite($sock2, "2");
13 fwrite($sock, "3");
21 fwrite(): supplied resource is not a valid stream resource
H A Dstream_get_line_nb.phpt25 fwrite($sockets[0], "line start");
28 fwrite($sockets[0], ", line end");
29 fwrite($sockets[0], ", $eol");
34 fwrite($sockets[0], "incomplete line");
37 fwrite($sockets[0], "incomplete line");
41 fwrite($sockets[0], "end of file");
H A Dproc_open_bug64438.phpt9 …$cmd = PHP_BINARY . ' -n -r "fwrite(STDOUT, $in = file_get_contents(\'php://stdin\')); fwrite(STDE…
11 …$cmd = PHP_BINARY . ' -n -r \'fwrite(STDOUT, $in = file_get_contents("php://stdin")); fwrite(STDER…
42 $written = fwrite($writePipes[0], substr($stdin, $stdinOffset), 8192);
H A Dbug79000.phpt13 var_dump(fwrite($sock1, $str));
14 var_dump(fwrite($sock1, $str));
H A Dtemp_stream_seek.phpt7 fwrite($f, str_repeat("1", 738));
9 fwrite($f, str_repeat("2", 512));
/PHP-8.0/ext/readline/tests/
H A Dbug77812-libedit.phpt16 fwrite($pipes[0], "echo <<<FOO\n bar\n FOO;\n");
17 fwrite($pipes[0], "print(<<<FOO\nxx\nFOO);\n");
18 fwrite($pipes[0], "echo <<<FOO\n xxx\n FOO;\nFOO\n;\n");
19 fwrite($pipes[0], "echo <<<FOO\nFOOL\nFOO\n,1;\n");
20 fwrite($pipes[0], "echo <<<FOO\nFOO4\nFOO\n,2;\n");
H A Dbug77812-readline.phpt16 fwrite($pipes[0], "echo <<<FOO\n bar\n FOO;\n");
17 fwrite($pipes[0], "print(<<<FOO\nxx\nFOO);\n");
18 fwrite($pipes[0], "echo <<<FOO\n xxx\n FOO;\nFOO\n;\n");
19 fwrite($pipes[0], "echo <<<FOO\nFOOL\nFOO\n,1;\n");
20 fwrite($pipes[0], "echo <<<FOO\nFOO4\nFOO\n,2;\n");
/PHP-8.0/ext/standard/tests/filters/
H A Dbug74267.phpt16 fwrite($stream, $line);
23 Warning: fwrite(): Stream filter (convert.quoted-printable-decode): invalid byte sequence in %s on …
25 Warning: fwrite(): Stream filter (convert.quoted-printable-decode): invalid byte sequence in %s on …
/PHP-8.0/ext/spl/tests/
H A DSplFileObject_fwrite_variation_001.phpt2 SplFileObject::fwrite function - writing with two parameters length < input string length
10 $obj->fwrite('test_write',4);
H A DSplFileObject_fwrite_variation_002.phpt2 SplFileObject::fwrite function - writing with two parameters, length > input string length
10 $obj->fwrite('test_write',12);

Completed in 30 milliseconds

12345678910>>...20