From 841642648845a5ce3fec288152cf5d383bc331c5 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Wed, 1 Feb 2006 10:31:26 +0000 Subject: [PATCH] fix #36242 (Possible memory corruption 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 d8b35f3834..dbbef29632 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -761,7 +761,7 @@ PHP_FUNCTION(stream_select) /* If seconds is not set to null, build the timeval, else we wait indefinitely */ if (sec != NULL) { - convert_to_long_ex(&sec); + convert_to_long(sec); /* Solaris + BSD do not like microsecond values which are >= 1 sec */ if (usec > 999999) { -- 2.40.0