Re: Different binary results with different PHP versions
- From: "Chung Leong" <chernyshevsky@xxxxxxxxxxx>
- Date: 31 May 2006 08:52:40 -0700
Skeleton wrote:
My PHP 5.1.2 is on Windows. So the problem is about the Operating
Systems.
David Haynes wrote:
Be careful of your base assumptions. php 5.1.2 on Linux produces
-2147483647 as well.
-david-
No, it's difference is in the compiler. The operation you describe
causes a double-to-long-integer conversion overflow. Gcc probably
throws in a check which sets the value to the integer boundary whereas
MS Visual C just lets it wrap around.
.
- Follow-Ups:
- Re: Different binary results with different PHP versions
- From: Skeleton
- Re: Different binary results with different PHP versions
- References:
- Different binary results with different PHP versions
- From: Skeleton
- Re: Different binary results with different PHP versions
- From: Erwin Moller
- Re: Different binary results with different PHP versions
- From: Skeleton
- Re: Different binary results with different PHP versions
- From: David Haynes
- Re: Different binary results with different PHP versions
- From: Skeleton
- Different binary results with different PHP versions
- Prev by Date: Re: Static method to get class variable (PHP4)
- Next by Date: Re: newbie question
- Previous by thread: Re: Different binary results with different PHP versions
- Next by thread: Re: Different binary results with different PHP versions
- Index(es):
Relevant Pages
|