Skip to content

Commit 87a5ebc

Browse files
committed
Stream funcs
1 parent 7e88389 commit 87a5ebc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/streamsfuncs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,8 +1696,8 @@ PHP_FUNCTION(stream_socket_shutdown)
16961696
if (how != STREAM_SHUT_RD &&
16971697
how != STREAM_SHUT_WR &&
16981698
how != STREAM_SHUT_RDWR) {
1699-
php_error_docref(NULL, E_WARNING, "Second parameter $how needs to be one of STREAM_SHUT_RD, STREAM_SHUT_WR or STREAM_SHUT_RDWR");
1700-
RETURN_FALSE;
1699+
zend_argument_value_error(2, "must be one of STREAM_SHUT_RD, STREAM_SHUT_WR, or STREAM_SHUT_RDWR");
1700+
RETURN_THROWS();
17011701
}
17021702

17031703
php_stream_from_zval(stream, zstream);

0 commit comments

Comments
 (0)