[PHP-CVS] com php-src: Fixed bug #64142 (dval to lval different behavior on ppc64): NEWS Zend/zend_operators.h

2013-02-11 Thread Remi Collet
Commit:e67a2b9e471a7bc0b774b9056bb38745b7187969 Author:Remi Collet r...@php.net Mon, 11 Feb 2013 09:10:51 +0100 Parents: bfdb889d4f4cdc1c602db70f956726235778aac3 Branches: PHP-5.4 PHP-5.5 master Link:

Re: [PHP-CVS] com php-src: Fixed bug #64142 (dval to lval different behavior on ppc64): NEWS Zend/zend_operators.h

2013-02-05 Thread Remi Collet
Le 05/02/2013 08:25, Rasmus Lerdorf a écrit : On 02/04/2013 06:19 AM, Remi Collet wrote: Commit:6533094d9e4d0c85044a170d9fad9a3986a68675 Author:Remi Collet r...@php.net Mon, 4 Feb 2013 15:19:32 +0100 Parents: 740b823be80a29e4c6537d4053eb7bad0fae6c41 Branches: PHP-5.4

Re: [PHP-CVS] com php-src: Fixed bug #64142 (dval to lval different behavior on ppc64): NEWS Zend/zend_operators.h

2013-02-05 Thread Remi Collet
Le 05/02/2013 08:54, Stas Malyshev a écrit : Hi! -if (d LONG_MAX) { +if (d = LONG_MAX) { return (long)(unsigned long) d; } return (long) d; Could you please explain this one? I thought LONG_MAX is a largest permissible long value, why when d==LONG_MAX we

Re: [PHP-CVS] com php-src: Fixed bug #64142 (dval to lval different behavior on ppc64): NEWS Zend/zend_operators.h

2013-02-05 Thread Rasmus Lerdorf
On 02/05/2013 12:33 AM, Remi Collet wrote: Le 05/02/2013 08:54, Stas Malyshev a écrit : Hi! - if (d LONG_MAX) { + if (d = LONG_MAX) { return (long)(unsigned long) d; } return (long) d; Could you please explain this one? I thought LONG_MAX is a largest

Re: [PHP-CVS] com php-src: Fixed bug #64142 (dval to lval different behavior on ppc64): NEWS Zend/zend_operators.h

2013-02-05 Thread Remi Collet
After more test and looking better Test result on ppc64 max, 0, =1 9223372036854775808., 9223372036854775807, 0x7fff 9223372036854775808., -9223372036854775808, 0x8000 max+1, 0, =1 9223372036854775808.,

[PHP-CVS] com php-src: Fixed bug #64142 (dval to lval different behavior on ppc64): NEWS Zend/zend_operators.h

2013-02-04 Thread Remi Collet
Commit:6533094d9e4d0c85044a170d9fad9a3986a68675 Author:Remi Collet r...@php.net Mon, 4 Feb 2013 15:19:32 +0100 Parents: 740b823be80a29e4c6537d4053eb7bad0fae6c41 Branches: PHP-5.4 PHP-5.5 master Link:

Re: [PHP-CVS] com php-src: Fixed bug #64142 (dval to lval different behavior on ppc64): NEWS Zend/zend_operators.h

2013-02-04 Thread Rasmus Lerdorf
On 02/04/2013 06:19 AM, Remi Collet wrote: Commit:6533094d9e4d0c85044a170d9fad9a3986a68675 Author:Remi Collet r...@php.net Mon, 4 Feb 2013 15:19:32 +0100 Parents: 740b823be80a29e4c6537d4053eb7bad0fae6c41 Branches: PHP-5.4 PHP-5.5 master Link:

Re: [PHP-CVS] com php-src: Fixed bug #64142 (dval to lval different behavior on ppc64): NEWS Zend/zend_operators.h

2013-02-04 Thread Stas Malyshev
Hi! - if (d LONG_MAX) { + if (d = LONG_MAX) { return (long)(unsigned long) d; } return (long) d; Could you please explain this one? I thought LONG_MAX is a largest permissible long value, why when d==LONG_MAX we need to convert? Also, why this patch -