Skip to content

Commit e5e263b

Browse files
committed
Stream funcs
1 parent 53df812 commit e5e263b

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

17041704
php_stream_from_zval(stream, zstream);

0 commit comments

Comments
 (0)