]> granicus.if.org Git - php/commitdiff
fix #36242 (Possible memory corruption in stream_select())
authorAntony Dovgal <tony2001@php.net>
Wed, 1 Feb 2006 10:31:26 +0000 (10:31 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 1 Feb 2006 10:31:26 +0000 (10:31 +0000)
ext/standard/streamsfuncs.c

index d8b35f38345328032f9fcf5d8ead254329ef36ab..dbbef296328d2f53222bb43b27c01b693b8c5ede 100644 (file)
@@ -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) {