]> granicus.if.org Git - php/commitdiff
fix typo (see #35900)
authorAntony Dovgal <tony2001@php.net>
Wed, 19 Apr 2006 08:43:05 +0000 (08:43 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 19 Apr 2006 08:43:05 +0000 (08:43 +0000)
ext/standard/streamsfuncs.c

index d96382367bdc8df4d68fbea3843f73667036b512..894e8ebf21672da6fac1ed0d65027dc4673e7a99 100644 (file)
@@ -759,7 +759,7 @@ PHP_FUNCTION(stream_select)
        if (sec != NULL) {
                convert_to_long(sec);
 
-               if (sec < 0) {
+               if (Z_LVAL_P(sec) < 0) {
                        php_error_docref(NULL TSRMLS_CC, E_WARNING, "The seconds parameter must be greater than 0.");
                        RETURN_FALSE;
                } else if (usec < 0) {