Reply to Re: Different binary results with different PHP versions

Your name:

Reply:


Posted by Skeleton on 05/31/06 16:46

So what should I do at this point? I need to make XOR operations with
such big(small) numbers.
Chung Leong wrote:
> 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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация