summaryrefslogtreecommitdiff
path: root/ext/sockets/tests/socket_import_stream-4.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sockets/tests/socket_import_stream-4.phpt')
-rw-r--r--ext/sockets/tests/socket_import_stream-4.phpt20
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/sockets/tests/socket_import_stream-4.phpt b/ext/sockets/tests/socket_import_stream-4.phpt
index a4c38b5a1b..bd2ac05aef 100644
--- a/ext/sockets/tests/socket_import_stream-4.phpt
+++ b/ext/sockets/tests/socket_import_stream-4.phpt
@@ -16,8 +16,8 @@ function test($stream, $sock) {
echo "stream_set_blocking ";
try {
print_r(stream_set_blocking($stream, 0));
- } catch (TypeError $e) {
- echo $e->getMessage(), "\n";
+ } catch (Error $e) {
+ echo get_class($e), ": ", $e->getMessage(), "\n";
}
echo "\n";
}
@@ -25,15 +25,15 @@ function test($stream, $sock) {
echo "socket_set_block ";
try {
print_r(socket_set_block($sock));
- } catch (TypeError $e) {
- echo $e->getMessage(), "\n";
+ } catch (Error $e) {
+ echo get_class($e), ": ", $e->getMessage(), "\n";
}
echo "\n";
echo "socket_get_option ";
try {
print_r(socket_get_option($sock, SOL_SOCKET, SO_TYPE));
- } catch (TypeError $e) {
- echo $e->getMessage(), "\n";
+ } catch (Error $e) {
+ echo get_class($e), ": ", $e->getMessage(), "\n";
}
echo "\n";
}
@@ -87,7 +87,7 @@ stream_set_blocking 1
close stream
-stream_set_blocking stream_set_blocking(): supplied resource is not a valid stream resource
+stream_set_blocking TypeError: stream_set_blocking(): supplied resource is not a valid stream resource
socket_set_block
Warning: socket_set_block(): unable to set blocking mode [%d]: %s in %s on line %d
@@ -98,11 +98,11 @@ Warning: socket_get_option(): Unable to retrieve socket option [%d]: %s in %s on
close socket
-stream_set_blocking stream_set_blocking(): supplied resource is not a valid stream resource
+stream_set_blocking TypeError: stream_set_blocking(): supplied resource is not a valid stream resource
-socket_set_block socket_set_block(): supplied resource is not a valid Socket resource
+socket_set_block Error: socket_set_block(): Argument #1 ($socket) has already been closed
-socket_get_option socket_get_option(): supplied resource is not a valid Socket resource
+socket_get_option Error: socket_get_option(): Argument #1 ($socket) has already been closed
Done.