Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  news entry for calendar overflow fix
  Fix integer overflow in calender.
This commit is contained in:
Joe Watkins 2016-11-12 17:35:24 +00:00
commit 2d865dfd35
6 changed files with 26 additions and 3 deletions

3
NEWS
View File

@ -5,6 +5,9 @@ PHP NEWS
10 Nov 2016, PHP 7.1.0RC6
- Calendar:
. Fix integer overflows (Joshua Rogers)
- Core:
. Fixded bug #72736 (Slow performance when fetching large dataset with mysqli
/ PDO). (Dmitry)

View File

@ -12,7 +12,7 @@
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Shane Caraveo <shane@caraveo.com> |
| Authors: Shane Caraveo <shane@caraveo.com> |
| Colin Viebrock <colin@easydns.com> |
| Hartmut Holzgraefe <hholzgra@php.net> |
| Wez Furlong <wez@thebrainroom.com> |

View File

@ -195,7 +195,7 @@ zend_long GregorianToSdn(
int inputMonth,
int inputDay)
{
int year;
zend_long year;
int month;
/* check for invalid dates */

View File

@ -217,7 +217,7 @@ zend_long JulianToSdn(
int inputMonth,
int inputDay)
{
int year;
zend_long year;
int month;
/* check for invalid dates */

View File

@ -0,0 +1,10 @@
--TEST--
gregoriantojd()
--SKIPIF--
<?php include 'skipif.inc'; ?>
--FILE--
<?php
echo gregoriantojd(5, 5, 6000000) . "\n";
?>
--EXPECT--
2193176185

View File

@ -0,0 +1,10 @@
--TEST--
juliantojd()
--SKIPIF--
<?php include 'skipif.inc'; ?>
--FILE--
<?php
echo juliantojd(5, 5, 6000000000) . "\n";
?>
--EXPECT--
622764916319