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

This commit is contained in:
Antony Dovgal 2006-02-01 10:31:57 +00:00
parent 823b39b698
commit b90d985a23
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -18,6 +18,7 @@ PHP NEWS
- Added imap_savebody(). (Mike)
- Fixed imagecolorallocate() and imagecolorallocatelapha() to return FALSE
on error. (Pierre)
- Fixed bug #36242 (Possible memory corruption in stream_select()). (Tony)
- Fixed bug #36235 (ocicolumnname returns false before a succesfull fetch).
(Tony)
- Fixed bug #36224 (date(DATE_ATOM) gives wrong results). (Derick, Hannes

View File

@ -750,7 +750,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) {