mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
- Fixed bug #49132 (posix_times returns false without error)
patch by: phpbugs at gunnu dot us
This commit is contained in:
parent
8ad9bd1930
commit
ade24c7e35
2 changed files with 3 additions and 1 deletions
2
NEWS
2
NEWS
|
@ -8,6 +8,8 @@ PHP NEWS
|
||||||
- Fixed signature generation/validation for zip archives in ext/phar. (Greg)
|
- Fixed signature generation/validation for zip archives in ext/phar. (Greg)
|
||||||
- Fixed memory leak in stream_is_local(). (Felipe)
|
- 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
|
- Fixed bug #49092 (ReflectionFunction fails to work with functions in fully
|
||||||
qualified namespaces). (Kalle, Jani)
|
qualified namespaces). (Kalle, Jani)
|
||||||
- Fixed bug #49074 (private class static fields can be modified by using
|
- Fixed bug #49074 (private class static fields can be modified by using
|
||||||
|
|
|
@ -651,7 +651,7 @@ PHP_FUNCTION(posix_times)
|
||||||
|
|
||||||
PHP_POSIX_NO_ARGS;
|
PHP_POSIX_NO_ARGS;
|
||||||
|
|
||||||
if((ticks = times(&t)) < 0) {
|
if ((ticks = times(&t)) == -1) {
|
||||||
POSIX_G(last_error) = errno;
|
POSIX_G(last_error) = errno;
|
||||||
RETURN_FALSE;
|
RETURN_FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue