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

index 54bbc1093aa1c30ac6133f2e764d2832f22d35a3..5b4f0a68e957cc98fac65e2276d9cdeea9beae02 100644 (file)
@@ -754,7 +754,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) {