summaryrefslogtreecommitdiff
path: root/ext/posix/posix.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2009-08-01 18:22:31 +0000
committerFelipe Pena <felipe@php.net>2009-08-01 18:22:31 +0000
commitade24c7e355cf65874d10c9d72bb7710919b0084 (patch)
tree8a5709ba6c259c9dba987111efc31981ce6575a7 /ext/posix/posix.c
parent8ad9bd1930867416c7862802d9b9f4bfece37b09 (diff)
downloadphp-git-ade24c7e355cf65874d10c9d72bb7710919b0084.tar.gz
- Fixed bug #49132 (posix_times returns false without error)
patch by: phpbugs at gunnu dot us
Diffstat (limited to 'ext/posix/posix.c')
-rw-r--r--ext/posix/posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/posix/posix.c b/ext/posix/posix.c
index 0c4db8bb1e..4a5198956e 100644
--- a/ext/posix/posix.c
+++ b/ext/posix/posix.c
@@ -651,7 +651,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;
}