RE: [PHP] peculiar behaviour of large integers with "<" and ">"
| From: | Johnson, Kirk | Date: | Fri, 13 Jul 2001 18:46:37 +0000 |
| Subject: | RE: [PHP] peculiar behaviour of large integers with "<" and ">" | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-57783@lists.php.net to get a copy of this message | ||
I am running 4.0.6. Nothing prints to the screen using a cut and paste of
the code below.
> -----Original Message-----
> From: scott [gts] [mailto:scott@graphictype.com]
> Sent: Friday, July 13, 2001 12:25 PM
> To: php
> Subject: RE: [PHP] peculiar behaviour of large integers with
> "<" and ">"
>
>
> after reading thru the PHP site some more, i found a little
> note mentioning a problem with the way negative integers are
> handled in v4.0.6...
>
> what version are you using?
> what do you see when you run this code?
>
> if (5 < -2147483647) {
> print "This is printed.";
> }
>
> if (5 < -214748364) {
> print "This is not.";
> }