From:             [EMAIL PROTECTED]
Operating system: Linux 2.4
PHP version:      4.0.6
PHP Bug Type:     Scripting Engine problem
Bug description:  Strange handling of negative hexadecimal numbers

When I initialize variables with hexadecimal integers, the positive ones
are well handled but the negative ones are considered as flots.

Try the followin code:

$n1 = 0x23456789;  // positive
$n2 = 0x98765432;  // negative
echo "$n1,$n2\n";

it outputs:

Edit bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to