]> granicus.if.org Git - php/commitdiff
- Fixed bug #49132 (posix_times returns false without error)
authorFelipe Pena <felipe@php.net>
Sat, 1 Aug 2009 18:22:31 +0000 (18:22 +0000)
committerFelipe Pena <felipe@php.net>
Sat, 1 Aug 2009 18:22:31 +0000 (18:22 +0000)
  patch by: phpbugs at gunnu dot us

NEWS
ext/posix/posix.c

diff --git a/NEWS b/NEWS
index 04aac2ea401bb7ca99c7f9ef1d591e9c7d339cc5..644debe55a4747db30c6dd1ddcc04bd54f5b6ce4 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,8 @@ PHP                                                                        NEWS
 - Fixed signature generation/validation for zip archives in ext/phar. (Greg)
 - Fixed memory leak in stream_is_local(). (Felipe)
 
+- Fixed bug #49132 (posix_times returns false without error).
+  (phpbugs at gunnu dot us)
 - Fixed bug #49092 (ReflectionFunction fails to work with functions in fully
   qualified namespaces). (Kalle, Jani)
 - Fixed bug #49074 (private class static fields can be modified by using
index 0c4db8bb1e0b1ba24097cc4fa92a02610085945d..4a5198956e5f0cf57e2b4551d9eee7a37ee0b7ca 100644 (file)
@@ -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;
        }