mirror of
https://github.com/php/php-src.git
synced 2026-03-29 19:52:20 +02:00
fix #36242 (Possible memory corruption in stream_select())
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user