Interestingly enough, I tried it on several of my machines, which are
different platforms and different (sub)versions of PHP and I got
different results:
RH7.3 with PHP 4.1.2: 2113879380
IRIX 6.5.11 with PHP 4.2.3: 2147483647
FC1 with PHP 4.3.6: 2113879380
R
Bruce wrote:
Consider the following code:
$BB = -2181087916;
$AA = (int)$BB;
$AA = intval($BB);
On some systems, $AA will be int(-2147483648), which is actually
consistent with the documentation.
On most systems, however, $AA will be int(2113879380), which is the
same v
Consider the following code:
$BB = -2181087916;
$AA = (int)$BB;
$AA = intval($BB);
On some systems, $AA will be int(-2147483648), which is actually
consistent with the documentation.
On most systems, however, $AA will be int(2113879380), which is the
same value truncated
3 matches
Mail list logo