Re: Is this a bug?
| From: | Jule | Date: | Tue, 28 May 2002 02:54:56 +0000 |
| Subject: | Re: Is this a bug? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99426@lists.php.net to get a copy of this message | ||
see this page:
http://www.php.net/manual/en/language.types.integer.php
Jule
On Monday 27 May 2002 22:52, Jule wrote:
> ps: sorry for all the typos...
>
> Jule
>
> On Monday 27 May 2002 22:51, Jule wrote:
> > Dunno if it's a bug, but it's 2147483648 to max for an integer? doesn't
> > bigint support higher numbers than that?
> > i'm not sure but i think that's why your number gor cut down.
> >
> > Jule
> >
> > On Monday 27 May 2002 22:36, zhaoxd wrote:
> > > Hello all:
> > >
> > >
> > >
> > > Not long ago I wrote some php code in my computer which had a
> > > apache
> > >
> > > server,and my php version is 4.0.5.The code as followed:
> > >
> > >
> > >
> > > $num = 2886732778;
> > >
> > > settype($num, integer);
> > >
> > > echo $num;
> > >
> > >
> > >
> > > And I found the num is -2147483648.attention,please:the version of
> > >
> > > php is 4.0.5.
> > >
> > >
> > >
> > > When I installed php-4.2.0 in my computer,however,I found the
> > > output
> > >
> > > of result is -1408234499.
> > >
> > >
> > >
> > > Why did the difference between the two version php happen?Is this a
> > >
> > > bug???
> > >
> > >
> > >
> > > Any help is appreciated!
> > >
> > > zhaoxd
--
|\/\__________________________/\/|
| Jule Slootbeek |
| jslootbeek@clarku.edu |
| http://blindtheory.cjb.net |
| __________________________ |
|/\/ \/\|