From 10a2a4f53444346d2797dddf34e25e5232df3c4a Mon Sep 17 00:00:00 2001 From: twosee Date: Fri, 28 May 2021 17:10:04 +0800 Subject: [PATCH] Fix argument index in stream_select() --- ext/standard/streamsfuncs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index fb4911bcbe6f..b2e4172e40b8 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -794,7 +794,7 @@ PHP_FUNCTION(stream_select) zend_argument_value_error(4, "must be greater than or equal to 0"); RETURN_THROWS(); } else if (usec < 0) { - zend_argument_value_error(4, "must be greater than or equal to 0"); + zend_argument_value_error(5, "must be greater than or equal to 0"); RETURN_THROWS(); }