From c5e6fb471208d7810ff6c9c840688a5010da00f9 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sat, 1 Aug 2009 18:22:31 +0000 Subject: [PATCH] - Fixed bug #49132 (posix_times returns false without error) patch by: phpbugs at gunnu dot us --- ext/posix/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/posix/posix.c b/ext/posix/posix.c index 23a8cb2400..0230af73df 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -684,7 +684,7 @@ PHP_FUNCTION(posix_times) PHP_POSIX_NO_ARGS; - if((ticks = times(&t)) < 0) { + if ((ticks = times(&t)) == -1) { POSIX_G(last_error) = errno; RETURN_FALSE; } -- 2.50.1