From: Felipe Pena Date: Sat, 1 Aug 2009 18:22:31 +0000 (+0000) Subject: - Fixed bug #49132 (posix_times returns false without error) X-Git-Tag: php-5.4.0alpha1~191^2~2893 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c5e6fb471208d7810ff6c9c840688a5010da00f9;p=php - Fixed bug #49132 (posix_times returns false without error) patch by: phpbugs at gunnu dot us --- 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; }