Skip to content

Commit 5ed963d

Browse files
committed
Stream funcs
1 parent 4dc51f6 commit 5ed963d

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
@@ -1698,8 +1698,8 @@ PHP_FUNCTION(stream_socket_shutdown)
16981698
if (how != STREAM_SHUT_RD &&
16991699
how != STREAM_SHUT_WR &&
17001700
how != STREAM_SHUT_RDWR) {
1701-
php_error_docref(NULL, E_WARNING, "Second parameter $how needs to be one of STREAM_SHUT_RD, STREAM_SHUT_WR or STREAM_SHUT_RDWR");
1702-
RETURN_FALSE;
1701+
zend_argument_value_error(2, "must be one of STREAM_SHUT_RD, STREAM_SHUT_WR, or STREAM_SHUT_RDWR");
1702+
RETURN_THROWS();
17031703
}
17041704

17051705
php_stream_from_zval(stream, zstream);

0 commit comments

Comments
 (0)