Bug #3062 Updated: dechex doesn't handle negative numbers

From: Date: Fri, 31 Dec 1999 10:34:22 +0000
Subject: Bug #3062 Updated: dechex doesn't handle negative numbers
Groups: php.dev 
Request: Send a blank email to php-dev+get-14160@lists.php.net to get a copy of this message
ID: 3062 User Update by: anderson@metrolink.com 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

« previous php.dev (#14160) next »