We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfdb889 commit e67a2b9Copy full SHA for e67a2b9
NEWS
@@ -2,6 +2,9 @@ PHP NEWS
2
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3
?? ??? 2012, PHP 5.4.13
4
5
+- Core:
6
+ . Fixed bug #64142 (dval to lval different behavior on ppc64). (Remi)
7
+
8
- CLI server:
9
. Fixed bug #64128 (buit-in web server is broken on ppc64). (Remi)
10
Zend/zend_operators.h
@@ -79,7 +79,8 @@ static zend_always_inline long zend_dval_to_lval(double d)
79
#else
80
static zend_always_inline long zend_dval_to_lval(double d)
81
{
82
- if (d > LONG_MAX) {
+ /* >= as (double)LONG_MAX is outside signed range */
83
+ if (d >= LONG_MAX) {
84
return (long)(unsigned long) d;
85
}
86
return (long) d;
0 commit comments