Browse Source

fix #36242 (Possible memory corruption in stream_select())

migration/RELEASE_1_0_0
Antony Dovgal 21 years ago
parent
commit
8416426488
  1. 2
      ext/standard/streamsfuncs.c

2
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) {

Loading…
Cancel
Save