]> granicus.if.org Git - php/commitdiff
fix tests (tcp_socket is tcp_socket/ssl when/if openssl is enabled)
authorAntony Dovgal <tony2001@php.net>
Thu, 20 Mar 2008 08:35:11 +0000 (08:35 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 20 Mar 2008 08:35:11 +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 e36b632cbe68a13e42efe4a6fdd7dfc4358eb009..861e78183b0eaa540710229c5ee6fa1bfd927abb 100644 (file)
@@ -11,7 +11,7 @@ fclose($tcp_socket);
 --EXPECT--
 array(8) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -30,7 +30,7 @@ array(8) {
 --UEXPECT--
 array(8) {
   [u"stream_type"]=>
-  unicode(10) "tcp_socket"
+  unicode(%d) "tcp_socke%s"
   [u"mode"]=>
   unicode(2) "r+"
   [u"unread_bytes"]=>
index 0066ca7fc3014e87ce4c099f1b0d611c43d4f0d6..926638823a8a7d77b50b9e3a1cf09eee348662c3 100644 (file)
@@ -37,7 +37,7 @@ var_dump(stream_get_meta_data($client));
 Write some data:
 array(8) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -58,7 +58,7 @@ array(8) {
 Read a line from the client, causing data to be buffered:
 array(8) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -79,7 +79,7 @@ array(8) {
 Read 3 bytes of data from the client:
 array(8) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -100,7 +100,7 @@ array(8) {
 Close the server side socket and read the remaining data from the client:
 array(8) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -122,7 +122,7 @@ Write some data:
 Notice: fwrite(): 23 character unicode buffer downcoded for binary stream runtime_encoding in %s on line %d
 array(8) {
   [u"stream_type"]=>
-  unicode(10) "tcp_socket"
+  unicode(%d) "tcp_socke%s"
   [u"mode"]=>
   unicode(2) "r+"
   [u"unread_bytes"]=>
@@ -143,7 +143,7 @@ array(8) {
 Read a line from the client, causing data to be buffered:
 array(8) {
   [u"stream_type"]=>
-  unicode(10) "tcp_socket"
+  unicode(%d) "tcp_socke%s"
   [u"mode"]=>
   unicode(2) "r+"
   [u"unread_bytes"]=>
@@ -164,7 +164,7 @@ array(8) {
 Read 3 bytes of data from the client:
 array(8) {
   [u"stream_type"]=>
-  unicode(10) "tcp_socket"
+  unicode(%d) "tcp_socke%s"
   [u"mode"]=>
   unicode(2) "r+"
   [u"unread_bytes"]=>
@@ -185,7 +185,7 @@ array(8) {
 Close the server side socket and read the remaining data from the client:
 array(8) {
   [u"stream_type"]=>
-  unicode(10) "tcp_socket"
+  unicode(%d) "tcp_socke%s"
   [u"mode"]=>
   unicode(2) "r+"
   [u"unread_bytes"]=>
index 95f7034ae24205304fd83e427480d9e997c060ae..03fc55f57b8cf0af7bde81ffa0b7cd4b0f84a74d 100644 (file)
@@ -35,7 +35,7 @@ fclose($server);
 --EXPECT--
 array(8) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -56,7 +56,7 @@ array(8) {
 Set a timeout on the client and attempt a read:
 array(8) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -77,7 +77,7 @@ array(8) {
 Write some data from the server:
 array(8) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -98,7 +98,7 @@ array(8) {
 Read some data from the client:
 array(8) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -117,7 +117,7 @@ array(8) {
 --UEXPECTF--
 array(8) {
   [u"stream_type"]=>
-  unicode(10) "tcp_socket"
+  unicode(%d) "tcp_socke%s"
   [u"mode"]=>
   unicode(2) "r+"
   [u"unread_bytes"]=>
@@ -138,7 +138,7 @@ array(8) {
 Set a timeout on the client and attempt a read:
 array(8) {
   [u"stream_type"]=>
-  unicode(10) "tcp_socket"
+  unicode(%d) "tcp_socke%s"
   [u"mode"]=>
   unicode(2) "r+"
   [u"unread_bytes"]=>
@@ -161,7 +161,7 @@ Write some data from the server:
 Notice: fwrite(): 5 character unicode buffer downcoded for binary stream runtime_encoding in %s on line %d
 array(8) {
   [u"stream_type"]=>
-  unicode(10) "tcp_socket"
+  unicode(%d) "tcp_socke%s"
   [u"mode"]=>
   unicode(2) "r+"
   [u"unread_bytes"]=>
@@ -182,7 +182,7 @@ array(8) {
 Read some data from the client:
 array(8) {
   [u"stream_type"]=>
-  unicode(10) "tcp_socket"
+  unicode(%d) "tcp_socke%s"
   [u"mode"]=>
   unicode(2) "r+"
   [u"unread_bytes"]=>
index 98dc092c3a4d2661441450f04e56af1b1bfd64b3..74d4a90737b2956989eb28e4686a181a39f03a5c 100644 (file)
@@ -30,7 +30,7 @@ fclose($server);
 --EXPECT--
 array(8) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -52,7 +52,7 @@ Set blocking to false:
 bool(true)
 array(8) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -74,7 +74,7 @@ Set blocking to true:
 bool(true)
 array(8) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -93,7 +93,7 @@ array(8) {
 --UEXPECT--
 array(8) {
   [u"stream_type"]=>
-  unicode(10) "tcp_socket"
+  unicode(%d) "tcp_socke%s"
   [u"mode"]=>
   unicode(2) "r+"
   [u"unread_bytes"]=>
@@ -115,7 +115,7 @@ Set blocking to false:
 bool(true)
 array(8) {
   [u"stream_type"]=>
-  unicode(10) "tcp_socket"
+  unicode(%d) "tcp_socke%s"
   [u"mode"]=>
   unicode(2) "r+"
   [u"unread_bytes"]=>
@@ -137,7 +137,7 @@ Set blocking to true:
 bool(true)
 array(8) {
   [u"stream_type"]=>
-  unicode(10) "tcp_socket"
+  unicode(%d) "tcp_socke%s"
   [u"mode"]=>
   unicode(2) "r+"
   [u"unread_bytes"]=>
index af3ff72f44b8e511464d5a11d50de8b9b1c46857..cfc06bf37aa6376f46589f134e51fcfad8887bdc 100644 (file)
@@ -35,7 +35,7 @@ fclose($client);
 Write some data:
 array(8) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -56,7 +56,7 @@ array(8) {
 Read a line from the client:
 array(8) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -77,7 +77,7 @@ array(8) {
 Close the server side socket and read the remaining data from the client:
 array(8) {
   ["stream_type"]=>
-  string(10) "tcp_socket"
+  string(%d) "tcp_socke%s"
   ["mode"]=>
   string(2) "r+"
   ["unread_bytes"]=>
@@ -99,7 +99,7 @@ Write some data:
 Notice: fwrite(): 23 character unicode buffer downcoded for binary stream runtime_encoding in %s on line %d
 array(8) {
   [u"stream_type"]=>
-  unicode(10) "tcp_socket"
+  unicode(%d) "tcp_socke%s"
   [u"mode"]=>
   unicode(2) "r+"
   [u"unread_bytes"]=>
@@ -120,7 +120,7 @@ array(8) {
 Read a line from the client:
 array(8) {
   [u"stream_type"]=>
-  unicode(10) "tcp_socket"
+  unicode(%d) "tcp_socke%s"
   [u"mode"]=>
   unicode(2) "r+"
   [u"unread_bytes"]=>
@@ -141,7 +141,7 @@ array(8) {
 Close the server side socket and read the remaining data from the client:
 array(8) {
   [u"stream_type"]=>
-  unicode(10) "tcp_socket"
+  unicode(%d) "tcp_socke%s"
   [u"mode"]=>
   unicode(2) "r+"
   [u"unread_bytes"]=>