/PHP-7.4/ext/standard/tests/file/ |
H A D | fwrite_error.phpt | 2 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 D | fwrite.phpt | 2 fwrite() tests 6 $filename = __DIR__."/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 D | fwrite_variation1-win32-mb.phpt | 2 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 D | fwrite_variation1.phpt | 2 Test fwrite() function : usage variations - r, rb & rt modes 6 Prototype: int fwrite ( resource $handle,string string, [, int $length] ); 14 echo "*** Testing fwrite() various operations ***\n"; 20 Test fwrite with file opened in mode : r,rb,rt 30 /* open the file using $files_modes and perform fwrite() on it */ 51 var_dump( fwrite($file_handle, $data_to_be_written )); 55 // move the file pointer to end of the file and try fwrite() 58 var_dump( fwrite($file_handle, $data_to_be_written) ); // fwrite to fail 74 *** Testing fwrite() various operations *** 76 -- Testing fwrite() with file having content of type numeric -- [all …]
|
H A D | ftruncate_bug76803.phpt | 9 fwrite($f, "Hello"); 11 fwrite($f, "World"); 16 fwrite($f, "Hello"); 22 fwrite($f, 'Hello'); 24 fwrite($f, 'World');
|
H A D | fwrite_variation2-win32.phpt | 2 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 D | fwrite_variation2.phpt | 2 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 D | fread_fwrite_basic.phpt | 2 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 D | fwrite_variation4-win32.phpt | 2 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 D | fwrite_variation4.phpt | 2 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 D | bug27508.phpt | 23 return fwrite($this->fp, $data); 59 fwrite($fp, "line1\n"); 60 fwrite($fp, "line2\n"); 61 fwrite($fp, "line3\n");
|
H A D | fwrite_basic-win32-mb.phpt | 2 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 D | fwrite_basic-win32.phpt | 2 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 D | fwrite_basic.phpt | 2 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 D | fwrite_variation3.phpt | 2 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 D | fwrite_variation3-win32.phpt | 2 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 …]
|
/PHP-7.4/ext/gd/tests/ |
H A D | bug72339.phpt | 15 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-7.4/sapi/cli/tests/ |
H A D | bug70470.phpt | 14 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-7.4/ext/standard/tests/network/ |
H A D | shutdown.phpt | 28 @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-7.4/ext/standard/tests/streams/ |
H A D | bug54623.phpt | 7 @fwrite($sock, "1"); 10 @fwrite($sock2, "2"); 12 fwrite($sock, "3"); 17 Warning: fwrite(): supplied resource is not a valid stream resource in %s on line %d
|
H A D | stream_get_line_nb.phpt | 25 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 D | proc_open_bug64438.phpt | 9 …$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);
|
/PHP-7.4/ext/readline/tests/ |
H A D | bug77812-libedit.phpt | 16 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 D | bug77812-readline.phpt | 16 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-7.4/ext/standard/tests/filters/ |
H A D | bug74267.phpt | 16 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 …
|