com php-src: Merge branch 'PHP-7.2' into PHP-7.3: NEWS ext/date/php_date.c
| From: | Joe Watkins | Date: | Wed, 19 Jun 2019 06:59:04 +0000 |
| Subject: | com php-src: Merge branch 'PHP-7.2' into PHP-7.3: NEWS ext/date/php_date.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106872@lists.php.net to get a copy of this message | ||
Commit: 025899e3b53e47cae9c1da4077988577b57e4b15
Author: Joe Watkins <krakjoe@php.net> Wed, 19 Jun 2019 08:58:28 +0200
Parents: 96663fd6aeda350cc2b51c975d7fa46315efc106 65067dff01fc3a46861ddfe0fe6d3e556460c146
Branches: PHP-7.3 PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=025899e3b53e47cae9c1da4077988577b57e4b15
Log:
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
Resolve discrepencies between second value yielded by gettimeofday and time, fixes #69044
Bugs:
https://bugs.php.net/69044
Changed paths:
MM NEWS
MM ext/date/php_date.c
Diff:
diff --cc NEWS
index eb0fa3b,2f11c32..6350c55
--- a/NEWS
+++ b/NEWS
@@@ -1,11 -1,15 +1,14 @@@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-?? ??? 2019, PHP 7.2.21
+?? ??? ????, PHP 7.3.8
-- XMLRPC:
- . Fixed #78173 (XML-RPC mutates immutable objects during encoding). (Asher
- Baker)
+- Core:
+ . Added syslog.filter=raw option. (Erik Lundin)
+ - Date:
+ . Fixed #69044 (discrepency between time and microtime). (krakjoe)
+
-27 Jun 2019, PHP 7.2.20
+27 Jun 2019, PHP 7.3.7
- Core:
. Fixed bug #76980 (Interface gets skipped if autoloader throws an exception).
diff --cc ext/date/php_date.c
index db08395,24c199e..dfe49d2
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@@ -1773,11 -1771,7 +1789,11 @@@ PHP_FUNCTION(gmstrftime
Return current UNIX timestamp */
PHP_FUNCTION(time)
{
- RETURN_LONG((zend_long)php_time());
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
+ }
+
- RETURN_LONG((zend_long)time(NULL));
++ RETURN_LONG((zend_long)php_time(NULL));
}
/* }}} */