Home
last modified time | relevance | path

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

12345678910>>...16

/PHP-5.3/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 …]
H A Dbug60120.phpt22 $cmd = 'php -r "fwrite(STDOUT, $in = file_get_contents(\'php://stdin\')); fwrite(STDERR, $in);"';
52 $written = fwrite($writePipes[0], (binary)substr($stdin, $stdinOffset), 8192);
/PHP-5.3/ext/standard/tests/network/
H A Dshutdown.phpt20 @fwrite($client1, "Client 1\n");
22 @fwrite($client1, "Error 1\n");
29 @fwrite($client2, "Client 2\n");
31 @fwrite($client2, "Error 2\n");
38 @fwrite($socket, fgets($socket));
39 @fwrite($socket, fgets($socket));
51 @fwrite($socket, fgets($socket));
52 @fwrite($socket, fgets($socket));
/PHP-5.3/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_002.phpt2 SplFileObject::fwrite function - writing with two parameters, length > input string length
10 $obj->fwrite('test_write',12);
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_003.phpt2 SplFileObject::fwrite function - writing with magic_quotes_runtime ini set
11 $obj->fwrite('"test" \'write\'');
/PHP-5.3/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 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.3/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 …]
/PHP-5.3/ext/mysql/tests/
H A Dmysql_query_load_data_openbasedir.phpt72 if (!fwrite($fp, (binary)"'97';'x';\n") ||
73 !fwrite($fp, (binary)"'98';'y';\n") ||
74 !fwrite($fp, (binary)"99;'z';\n")) {
78 if (!fwrite($fp, "97;'x';\n") ||
79 !fwrite($fp, "98;'y';\n") ||
80 !fwrite($fp, "99;'z';\n")) {

Completed in 33 milliseconds

12345678910>>...16