--EXPECT--
array(7) {
["stream_type"]=>
- string(10) "tcp_socket"
+ string(%d) "tcp_socke%s"
["mode"]=>
string(2) "r+"
["unread_bytes"]=>
Write some data:
array(7) {
["stream_type"]=>
- string(10) "tcp_socket"
+ string(%d) "tcp_socke%s"
["mode"]=>
string(2) "r+"
["unread_bytes"]=>
Read a line from the client, causing data to be buffered:
array(7) {
["stream_type"]=>
- string(10) "tcp_socket"
+ string(%d) "tcp_socke%s"
["mode"]=>
string(2) "r+"
["unread_bytes"]=>
Read 3 bytes of data from the client:
array(7) {
["stream_type"]=>
- string(10) "tcp_socket"
+ string(%d) "tcp_socke%s"
["mode"]=>
string(2) "r+"
["unread_bytes"]=>
Close the server side socket and read the remaining data from the client:
array(7) {
["stream_type"]=>
- string(10) "tcp_socket"
+ string(%d) "tcp_socke%s"
["mode"]=>
string(2) "r+"
["unread_bytes"]=>
--EXPECT--
array(7) {
["stream_type"]=>
- string(10) "tcp_socket"
+ string(%d) "tcp_socke%s"
["mode"]=>
string(2) "r+"
["unread_bytes"]=>
Set a timeout on the client and attempt a read:
array(7) {
["stream_type"]=>
- string(10) "tcp_socket"
+ string(%d) "tcp_socke%s"
["mode"]=>
string(2) "r+"
["unread_bytes"]=>
Write some data from the server:
array(7) {
["stream_type"]=>
- string(10) "tcp_socket"
+ string(%d) "tcp_socke%s"
["mode"]=>
string(2) "r+"
["unread_bytes"]=>
Read some data from the client:
array(7) {
["stream_type"]=>
- string(10) "tcp_socket"
+ string(%d) "tcp_socke%s"
["mode"]=>
string(2) "r+"
["unread_bytes"]=>
--EXPECT--
array(7) {
["stream_type"]=>
- string(10) "tcp_socket"
+ string(%d) "tcp_socke%s"
["mode"]=>
string(2) "r+"
["unread_bytes"]=>
bool(true)
array(7) {
["stream_type"]=>
- string(10) "tcp_socket"
+ string(%d) "tcp_socke%s"
["mode"]=>
string(2) "r+"
["unread_bytes"]=>
bool(true)
array(7) {
["stream_type"]=>
- string(10) "tcp_socket"
+ string(%d) "tcp_socke%s"
["mode"]=>
string(2) "r+"
["unread_bytes"]=>
Write some data:
array(7) {
["stream_type"]=>
- string(10) "tcp_socket"
+ string(%d) "tcp_socke%s"
["mode"]=>
string(2) "r+"
["unread_bytes"]=>
Read a line from the client:
array(7) {
["stream_type"]=>
- string(10) "tcp_socket"
+ string(%d) "tcp_socke%s"
["mode"]=>
string(2) "r+"
["unread_bytes"]=>
Close the server side socket and read the remaining data from the client:
array(7) {
["stream_type"]=>
- string(10) "tcp_socket"
+ string(%d) "tcp_socke%s"
["mode"]=>
string(2) "r+"
["unread_bytes"]=>
bool(true)
["eof"]=>
bool(true)
-}
\ No newline at end of file
+}