From acf25d1aac58f1dcbd6d1a2839a2f35c7109d2cc Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Wed, 19 Apr 2006 08:43:05 +0000 Subject: [PATCH] fix typo (see #35900) --- ext/standard/streamsfuncs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index d96382367bd..894e8ebf216 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -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) {