Home
last modified time | relevance | path

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

12345678910>>...21

/php-src/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 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 Dbug27508.phpt24 return fwrite($this->fp, $data);
60 fwrite($fp, "line1\n");
61 fwrite($fp, "line2\n");
62 fwrite($fp, "line3\n");
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-src/ext/gd/tests/
H A Dbug72339.phpt23 fwrite($fh, "gd2\x00");
24 fwrite($fh, pack("n", 2));
25 fwrite($fh, pack("n", 1));
26 fwrite($fh, pack("n", 1));
27 fwrite($fh, pack("n", 0x40));
28 fwrite($fh, pack("n", 2));
29 fwrite($fh, pack("n", 0x5AA0)); // Chunks Wide
30 fwrite($fh, pack("n", 0x5B00)); // Chunks Vertically
31 fwrite($fh, str_repeat("\x41\x41\x41\x41", 0x1000000)); // overflow data
/php-src/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");
H A Dcli_server_persistent_string002.phpt13 fwrite($fd, "GET /index.php HTTP/1.0\r\nHost: hello");
16 fwrite($fd2, "GET /index.php HTTP/1.0\r\nConnection: close\r\n\r\n");
20 fwrite($fd, "\r\n\r\n");
/php-src/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-src/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 …v('TEST_PHP_EXECUTABLE_ESCAPED') . ' -n -r "fwrite(STDOUT, $in = file_get_contents(\'php://stdin\'…
11 …v('TEST_PHP_EXECUTABLE_ESCAPED') . ' -n -r \'fwrite(STDOUT, $in = file_get_contents("php://stdin")…
42 $written = fwrite($writePipes[0], substr($stdin, $stdinOffset), 8192);
H A Dbug51056.phpt12 fwrite($conn, "Hello 1\n"); // 8 bytes
14 fwrite($conn, str_repeat('a', 300)."\n"); // 301 bytes
16 fwrite($conn, "Hello 1\n"); // 8 bytes
/php-src/ext/readline/tests/
H A Dbug77812-libedit.phpt17 fwrite($pipes[0], "echo <<<FOO\n bar\n FOO;\n");
18 fwrite($pipes[0], "print(<<<FOO\nxx\nFOO);\n");
19 fwrite($pipes[0], "echo <<<FOO\n xxx\n FOO;\nFOO\n;\n");
20 fwrite($pipes[0], "echo <<<FOO\nFOOL\nFOO\n,1;\n");
21 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-src/benchmark/
H A Dshared.php13 fwrite(STDOUT, "> $cmd\n");
53 fwrite(STDOUT, $result->stdout);
54 fwrite(STDERR, $result->stderr);
55 fwrite(STDERR, 'Exited with status code ' . $statusCode . "\n");
/php-src/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-src/.github/
H A Dnightly_matrix.php149 fwrite($f, 'branches=' . json_encode($branches, JSON_UNESCAPED_SLASHES) . "\n");
150 fwrite($f, 'matrix-include=' . json_encode($matrix_include, JSON_UNESCAPED_SLASHES) . "\n");
151 fwrite($f, 'windows-matrix-include=' . json_encode($windows_matrix_include, JSON_UNESCAPED_SLASHES)…
152 fwrite($f, 'macos-matrix-include=' . json_encode($macos_matrix_include, JSON_UNESCAPED_SLASHES) . "…

Completed in 40 milliseconds

12345678910>>...21