Home
last modified time | relevance | path

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

12345678910>>...18

/PHP-5.5/ext/standard/tests/file/
H A Dfwrite_error.phpt2 Test fwrite() function : error conditions
16 echo "*** Testing fwrite() : error conditions ***\n";
22 var_dump( fwrite() );
25 var_dump( fwrite($file_handle) );
35 var_dump( fwrite($file_handle, $data, $len) );
37 var_dump( fwrite($file_handle, $data, $len) );
58 var_dump(fwrite($file_handle,"data"));
60 // fwrite on a file handle which is unset
63 var_dump( fwrite(@$fp,"data"));
73 *** Testing fwrite() : error conditions ***
[all …]
H A Dfwrite.phpt2 fwrite() tests
6 $filename = dirname(__FILE__)."/fwrite.dat";
9 var_dump(fwrite($fp));
10 var_dump(fwrite($fp, array()));
14 var_dump(fwrite($fp, "data"));
17 var_dump(fwrite($fp, "data", -1));
18 var_dump(fwrite($fp, "data", 100000));
21 var_dump(fwrite($fp, "data", -1));
23 var_dump(fwrite(array(), "data", -1));
24 var_dump(fwrite(array(), "data"));
[all …]
H A Dfwrite_variation1-win32.phpt2 Test fwrite() function : usage variations - r, rb & rt modes
12 Prototype: int fwrite ( resource $handle,string string, [, int $length] );
20 echo "*** Testing fwrite() various operations ***\n";
26 Test fwrite with file opened in mode : r,rb,rt
37 /* open the file using $files_modes and perform fwrite() on it */
58 var_dump( fwrite($file_handle, $data_to_be_written ));
62 // move the file pointer to end of the file and try fwrite()
65 var_dump( fwrite($file_handle, $data_to_be_written) ); // fwrite to fail
82 *** Testing fwrite() various operations ***
84 -- Testing fwrite() with file having content of type numeric --
[all …]
H A Dfwrite_variation1.phpt2 Test fwrite() function : usage variations - r, rb & rt modes
12 Prototype: int fwrite ( resource $handle,string string, [, int $length] );
20 echo "*** Testing fwrite() various operations ***\n";
26 Test fwrite with file opened in mode : r,rb,rt
36 /* open the file using $files_modes and perform fwrite() on it */
57 var_dump( fwrite($file_handle, $data_to_be_written ));
61 // move the file pointer to end of the file and try fwrite()
64 var_dump( fwrite($file_handle, $data_to_be_written) ); // fwrite to fail
80 *** Testing fwrite() various operations ***
82 -- Testing fwrite() with file having content of type numeric --
[all …]
H A Dfwrite_variation5.phpt2 Test fwrite() function : usage variation
7 /* Prototype : int fwrite(resource fp, string str [, int length])
13 echo "*** Testing fwrite() : usage variation ***\n";
107 fwrite($fp, $value);
116 *** Testing fwrite() : usage variation ***
137 Error: 2 - fwrite() expects parameter 2 to be string, array given, %s(%d)
140 Error: 2 - fwrite() expects parameter 2 to be string, array given, %s(%d)
143 Error: 2 - fwrite() expects parameter 2 to be string, array given, %s(%d)
146 Error: 2 - fwrite() expects parameter 2 to be string, array given, %s(%d)
167 Error: 2 - fwrite() expects parameter 2 to be string, object given, %s(%d)
H A Dfwrite_variation2-win32.phpt2 Test fwrite() function : usage variations - r+, r+b & r+t modes
12 Prototype: int fwrite ( resource $handle,string string, [, int $length] );
20 echo "*** Testing fwrite() various operations ***\n";
26 Test fwrite with file opened in mode : r+,r+b,r+t
37 /* open the file using $files_modes and perform fwrite() on it */
59 var_dump( fwrite($file_handle, $data_to_be_written, 400));
66 var_dump( fwrite($file_handle, $data_to_be_written, 200) );
74 var_dump( fwrite($file_handle, $data_to_be_written, 200) );
91 *** Testing fwrite() various operations ***
93 -- Testing fwrite() with file having content of type numeric --
[all …]
H A Dfwrite_variation2.phpt2 Test fwrite() function : usage variations - r+, r+b & r+t modes
12 Prototype: int fwrite ( resource $handle,string string, [, int $length] );
20 echo "*** Testing fwrite() various operations ***\n";
26 Test fwrite with file opened in mode : r+,r+b,r+t
37 /* open the file using $files_modes and perform fwrite() on it */
59 var_dump( fwrite($file_handle, $data_to_be_written, 400));
66 var_dump( fwrite($file_handle, $data_to_be_written, 200) );
74 var_dump( fwrite($file_handle, $data_to_be_written, 200) );
90 *** Testing fwrite() various operations ***
92 -- Testing fwrite() with file having content of type numeric --
[all …]
H A Dfwrite_variation4-win32.phpt2 Test fwrite() function : usage variations - x, xb, xt, x+, x+b & x+t modes
12 Prototype: int fwrite ( resource $handle,string string, [, int $length] );
16 fwrite() returns the number of bytes written or FALSE on error
20 echo "*** Testing fwrite() various operations ***\n";
26 Test fwrite with file opened in mode : x, xb, xt, x+, x+b, x+t
37 /* open the file using $files_modes and perform fwrite() on it */
56 var_dump( fwrite($file_handle,$data_to_be_written,400));
74 *** Testing fwrite() various operations ***
76 -- Testing fwrite() with file having content of type numeric --
126 -- Testing fwrite() with file having content of type text --
[all …]
H A Dfwrite_variation4.phpt2 Test fwrite() function : usage variations - x, xb, xt, x+, x+b & x+t modes
12 Prototype: int fwrite ( resource $handle,string string, [, int $length] );
16 fwrite() returns the number of bytes written or FALSE on error
20 echo "*** Testing fwrite() various operations ***\n";
26 Test fwrite with file opened in mode : x, xb, xt, x+, x+b, x+t
37 /* open the file using $files_modes and perform fwrite() on it */
56 var_dump( fwrite($file_handle,$data_to_be_written,400));
74 *** Testing fwrite() various operations ***
76 -- Testing fwrite() with file having content of type numeric --
126 -- Testing fwrite() with file having content of type text --
[all …]
H A Dfread_fwrite_basic.phpt2 fread & fwrite - Test reading and writing using a single resource
9 * proto int fwrite(resource fp, string str [, int length])
29 fwrite($h, $out1);
32 fwrite($h, $out2);
36 fwrite($h, $out3);
48 fwrite($h, $out);
H A Dfwrite_basic-win32.phpt2 Test fwrite() function : basic functionality
12 Prototype: int fwrite ( resource $handle,string string, [, int $length] );
22 echo "*** Testing fwrite() basic operations ***\n";
24 test fwrite with file opened in mode : w,wb,wt,w+,w+b,w+t
38 /* open the file using $files_modes and perform fwrite() on it */
60 // fwrite() without length parameter
61 var_dump( fwrite($file_handle, $data_to_be_written)); //int(1024)
79 *** Testing fwrite() basic operations ***
81 -- Testing fwrite() with file having data of type numeric --
167 -- Testing fwrite() with file having data of type text --
[all …]
H A Dfwrite_basic.phpt2 Test fwrite() function : basic functionality
12 Prototype: int fwrite ( resource $handle,string string, [, int $length] );
22 echo "*** Testing fwrite() basic operations ***\n";
24 test fwrite with file opened in mode : w,wb,wt,w+,w+b,w+t
38 /* open the file using $files_modes and perform fwrite() on it */
60 // fwrite() without length parameter
61 var_dump( fwrite($file_handle, $data_to_be_written)); //int(1024)
79 *** Testing fwrite() basic operations ***
81 -- Testing fwrite() with file having data of type numeric --
167 -- Testing fwrite() with file having data of type text --
[all …]
H A Dbug27508.phpt23 return fwrite($this->fp, $data);
59 fwrite($fp, b"line1\n");
60 fwrite($fp, b"line2\n");
61 fwrite($fp, b"line3\n");
H A Dfwrite_variation3-win32.phpt2 Test fwrite() function : usage variations - a, ab, at, a+, a+b & a+t mode
12 Prototype: int fwrite ( resource $handle,string string, [, int $length] );
20 echo "*** Testing fwrite() various operations ***\n";
26 Test fwrite with file opened in mode : a,ab,at,a+,a+b,a+
37 /* open the file using $files_modes and perform fwrite() on it */
58 var_dump( fwrite($file_handle,$data_to_be_written,400) );
65 var_dump( fwrite($file_handle, $data_to_be_written, 200) );
83 *** Testing fwrite() various operations ***
85 -- Testing fwrite() with file having content of type numeric --
159 -- Testing fwrite() with file having content of type text --
[all …]
H A Dfwrite_variation3.phpt2 Test fwrite() function : usage variations - a, ab, at, a+, a+b & a+t modes
12 Prototype: int fwrite ( resource $handle,string string, [, int $length] );
20 echo "*** Testing fwrite() various operations ***\n";
26 Test fwrite with file opened in mode : a,ab,at,a+,a+b,a+t
37 /* open the file using $files_modes and perform fwrite() on it */
59 var_dump( fwrite($file_handle,$data_to_be_written,400) );
66 var_dump( fwrite($file_handle, $data_to_be_written, 200) );
84 *** Testing fwrite() various operations ***
86 -- Testing fwrite() with file having content of type numeric --
160 -- Testing fwrite() with file having content of type text --
[all …]
/PHP-5.5/ext/gd/tests/
H A Dbug72339.phpt10 fwrite($fh, "gd2\x00");
11 fwrite($fh, pack("n", 2));
12 fwrite($fh, pack("n", 1));
13 fwrite($fh, pack("n", 1));
14 fwrite($fh, pack("n", 0x40));
15 fwrite($fh, pack("n", 2));
16 fwrite($fh, pack("n", 0x5AA0)); // Chunks Wide
17 fwrite($fh, pack("n", 0x5B00)); // Chunks Vertically
18 fwrite($fh, str_repeat("\x41\x41\x41\x41", 0x1000000)); // overflow data
/PHP-5.5/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-5.5/ext/spl/tests/
H A DSplFileObject_fwrite_error_001.phpt6 $obj->fwrite();
7 $obj->fwrite('6,6,6',25,null);
10 Warning: SplFileObject::fwrite() expects at least 1 parameter, 0 given in %s
12 Warning: SplFileObject::fwrite() expects at most 2 parameters, 3 given in %s
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);
/PHP-5.5/ext/standard/tests/streams/
H A Dbug54623.phpt7 @fwrite($sock, "1");
10 @fwrite($sock2, "2");
12 fwrite($sock, "3");
17 Warning: fwrite(): %d is not a valid stream resource in %s on line %d
H A Dproc_open_bug60120.phpt8 …$cmd = PHP_BINARY . ' -n -r "fwrite(STDOUT, $in = file_get_contents(\'php://stdin\')); fwrite(STDE…
10 …$cmd = PHP_BINARY . ' -n -r \'fwrite(STDOUT, $in = file_get_contents("php://stdin")); fwrite(STDER…
41 $written = fwrite($writePipes[0], (binary)substr($stdin, $stdinOffset), 8192);
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…
41 $written = fwrite($writePipes[0], (binary)substr($stdin, $stdinOffset), 8192);
H A Dstream_get_line_nb.phpt25 fwrite($sockets[0], b"line start");
28 fwrite($sockets[0], b", line end");
29 fwrite($sockets[0], b", $eol");
34 fwrite($sockets[0], b"incomplete line");
37 fwrite($sockets[0], b"incomplete line");
41 fwrite($sockets[0], b"end of file");
/PHP-5.5/ext/mbstring/ucgendat/
H A Ducgendat.c1405 fwrite((char *) hdr, sizeof(ac_uint2), 2, out); in write_cdata()
1410 fwrite((char *) &bytes, sizeof(ac_uint4), 1, out); in write_cdata()
1488 fwrite((char *) hdr, sizeof(ac_uint2), 2, out); in write_cdata()
1561 fwrite((char *) hdr, sizeof(ac_uint2), 2, out); in write_cdata()
1567 fwrite((char *) &bytes, sizeof(ac_uint4), 1, out); in write_cdata()
1638 fwrite((char *) hdr, sizeof(ac_uint2), 2, out); in write_cdata()
1645 fwrite((char *) &bytes, sizeof(ac_uint4), 1, out); in write_cdata()
1731 fwrite((char *) hdr, sizeof(ac_uint2), 2, out); in write_cdata()
1738 fwrite((char *) &bytes, sizeof(ac_uint4), 1, out); in write_cdata()
1815 fwrite((char *) hdr, sizeof(ac_uint2), 2, out); in write_cdata()
[all …]

Completed in 29 milliseconds

12345678910>>...18