]> granicus.if.org Git - php/commitdiff
MFH: fix tests
authorAntony Dovgal <tony2001@php.net>
Thu, 20 Mar 2008 08:35:44 +0000 (08:35 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 20 Mar 2008 08:35:44 +0000 (08:35 +0000)
ext/standard/tests/streams/stream_get_meta_data_socket_basic.phpt
ext/standard/tests/streams/stream_get_meta_data_socket_variation1.phpt
ext/standard/tests/streams/stream_get_meta_data_socket_variation2.phpt
ext/standard/tests/streams/stream_get_meta_data_socket_variation3.phpt
ext/standard/tests/streams/stream_get_meta_data_socket_variation4.phpt

index 1369f25ee4dbdb8230e8d4fc883063207ded2b78..ee5a43f6acf61d84c2e42c6ea0aa3225f9b49659 100644 (file)
@@ -11,7 +11,7 @@ fclose($tcp_socket);
 --EXPECT--
 array(7) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
index f9158e4f26d827d7438208a3afa9a0597899e0dc..c567386540c8cb64ac0bb0b8b1ee64acbb942a2f 100644 (file)
@@ -37,7 +37,7 @@ var_dump(stream_get_meta_data($client));
 Write some data:
 array(7) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -56,7 +56,7 @@ array(7) {
 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"]=>
@@ -75,7 +75,7 @@ array(7) {
 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"]=>
@@ -94,7 +94,7 @@ array(7) {
 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"]=>
index e6b3e041425041171c011aaac04114226e5bba60..5ef60da722a809530512b584af35f46a6d010552 100644 (file)
@@ -35,7 +35,7 @@ fclose($server);
 --EXPECT--
 array(7) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -54,7 +54,7 @@ array(7) {
 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"]=>
@@ -73,7 +73,7 @@ array(7) {
 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"]=>
@@ -92,7 +92,7 @@ array(7) {
 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"]=>
index f4679710472023321c3c0de376b827620557bc00..cc28cf64e25c2e5c012fad0b5793cd19d08188e2 100644 (file)
@@ -30,7 +30,7 @@ fclose($server);
 --EXPECT--
 array(7) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -50,7 +50,7 @@ Set blocking to false:
 bool(true)
 array(7) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -70,7 +70,7 @@ Set blocking to true:
 bool(true)
 array(7) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
index ebe580869cc779938fc748439e768c6b0c482ce8..dae4f470fcbb4173d0081157c307247d536f7ca1 100644 (file)
@@ -35,7 +35,7 @@ fclose($client);
 Write some data:
 array(7) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -54,7 +54,7 @@ array(7) {
 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"]=>
@@ -73,7 +73,7 @@ array(7) {
 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"]=>
@@ -86,4 +86,4 @@ array(7) {
   bool(true)
   ["eof"]=>
   bool(true)
-}
\ No newline at end of file
+}