svn: /php/php-src/ branches/PHP_5_2/NEWS branches/PHP_5_2/ext/posix/posix.c branches/PHP_5_3/NEWS branches/PHP_5_3/ext/posix/posix.c
trunk/ext/posix/posix.c
| From: | Felipe Pena | Date: | Sat, 01 Aug 2009 18:22:31 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_2/NEWS branches/PHP_5_2/ext/posix/posix.c branches/PHP_5_3/NEWS branches/PHP_5_3/ext/posix/posix.c trunk/ext/posix/posix.c |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-59943@lists.php.net to get a copy of this message | ||
felipe Sat, 01 Aug 2009 18:22:31 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=286629
Log:
- Fixed bug #49132 (posix_times returns false without error)
patch by: phpbugs at gunnu dot us
Bug: http://bugs.php.net/49132 (Open) posix_times returns
false without error
Changed paths:
U php/php-src/branches/PHP_5_2/NEWS
U php/php-src/branches/PHP_5_2/ext/posix/posix.c
U php/php-src/branches/PHP_5_3/NEWS
U php/php-src/branches/PHP_5_3/ext/posix/posix.c
U php/php-src/trunk/ext/posix/posix.c
Modified: php/php-src/branches/PHP_5_2/NEWS
===================================================================
--- php/php-src/branches/PHP_5_2/NEWS 2009-08-01 17:45:48 UTC (rev 286628)
+++ php/php-src/branches/PHP_5_2/NEWS 2009-08-01 18:22:31 UTC (rev 286629)
@@ -5,6 +5,8 @@
defined as a file handle. (Ilia)
- Fixed memory leak in stream_is_local(). (Felipe)
+- Fixed bug #49132 (posix_times returns false without error).
+ (phpbugs at gunnu dot us)
- Fixed bug #49074 (private class static fields can be modified by using
reflection). (Jani)
- Fixed bug #49052 (context option headers freed too early when using
Modified: php/php-src/branches/PHP_5_2/ext/posix/posix.c
===================================================================
--- php/php-src/branches/PHP_5_2/ext/posix/posix.c 2009-08-01 17:45:48 UTC (rev 286628)
+++ php/php-src/branches/PHP_5_2/ext/posix/posix.c 2009-08-01 18:22:31 UTC (rev 286629)
@@ -491,7 +491,7 @@
PHP_POSIX_NO_ARGS;
- if((ticks = times(&t)) < 0) {
+ if ((ticks = times(&t)) == -1) {
POSIX_G(last_error) = errno;
RETURN_FALSE;
}
Modified: php/php-src/branches/PHP_5_3/NEWS
===================================================================
--- php/php-src/branches/PHP_5_3/NEWS 2009-08-01 17:45:48 UTC (rev 286628)
+++ php/php-src/branches/PHP_5_3/NEWS 2009-08-01 18:22:31 UTC (rev 286629)
@@ -8,6 +8,8 @@
- 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
Modified: php/php-src/branches/PHP_5_3/ext/posix/posix.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/posix/posix.c 2009-08-01 17:45:48 UTC (rev 286628)
+++ php/php-src/branches/PHP_5_3/ext/posix/posix.c 2009-08-01 18:22:31 UTC (rev 286629)
@@ -651,7 +651,7 @@
PHP_POSIX_NO_ARGS;
- if((ticks = times(&t)) < 0) {
+ if ((ticks = times(&t)) == -1) {
POSIX_G(last_error) = errno;
RETURN_FALSE;
}
Modified: php/php-src/trunk/ext/posix/posix.c
===================================================================
--- php/php-src/trunk/ext/posix/posix.c 2009-08-01 17:45:48 UTC (rev 286628)
+++ php/php-src/trunk/ext/posix/posix.c 2009-08-01 18:22:31 UTC (rev 286629)
@@ -684,7 +684,7 @@
PHP_POSIX_NO_ARGS;
- if((ticks = times(&t)) < 0) {
+ if ((ticks = times(&t)) == -1) {
POSIX_G(last_error) = errno;
RETURN_FALSE;
}