Serious bug in the serializer's smart_str_print_long
| From: | Stanislav Malyshev | Date: | Mon, 20 Aug 2001 14:00:55 +0000 |
| Subject: | Serious bug in the serializer's smart_str_print_long | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-63829@lists.php.net to get a copy of this message | ||
smart_str_print_long does a wrong thing when printing longs. From what I
understand, it tries to 'reverse' the number so that it could be printed
more easily. The problem here is that number that fits long may not fit
long when 'reversed'. So this procedure gives utter trash for big numbers,
e.g., 2147483647 is printed as 0(/)(0*.// - which is not exactly what
would be expected.
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115