From: marcosptf Date: Mon, 16 Nov 2015 21:39:06 +0000 (-0200) Subject: test to function socket_shutdown(); X-Git-Tag: php-7.0.3RC1~105^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9d3ff0ec7dda34dec3e36cdd63bfb4170c6e611;p=php test to function socket_shutdown(); --- diff --git a/ext/sockets/tests/socket_shutdown.phpt b/ext/sockets/tests/socket_shutdown.phpt new file mode 100644 index 0000000000..09f5ac73fc --- /dev/null +++ b/ext/sockets/tests/socket_shutdown.phpt @@ -0,0 +1,54 @@ +--TEST-- +bool socket_shutdown ( resource $socket [, int $how = 2 ] ) ; +--CREDITS-- +marcosptf - - #phparty7 - @phpsp - novatec/2015 - sao paulo - br +--SKIPIF-- + +--FILE-- + +--CLEAN-- + +--EXPECTF-- +bool(true) +bool(true) +bool(true) + +Warning: socket_shutdown(): unable to shutdown socket [%d]: Transport endpoint is not connected in %s on line %d +bool(false) + +Warning: socket_shutdown(): unable to shutdown socket [%d]: Invalid argument in %s on line %d +bool(false)