[PHP-DEV] Bug #3062 Updated: dechex doesn't handle negative numbers From: Bug Database (php-dev <email protected>)
Date: 12/31/99

ID: 3062
User Update by: anderson <email protected>
Status: Open
Bug Type: Misbehaving function
Description: dechex doesn't handle negative numbers

I also noticed that

PHPAPI void convert_to_long_base(pval *op, int base)

uses strtol() instead of strtoul(), which also contributes to my difficulty.

$ip=0xffffffff doesn't equal -1, but $ip=~0 does.

Perhaps I'm just trying to do something that isn't supposed to work, but
the results are clertainly not intuitive.

Full Bug description available at: http://bugs.php.net/?id=3062

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>