[PHP-DEV] PHP 4.0 Bug #6761 Updated: problem with decbin(); From: Bug Database (php-dev <email protected>)
Date: 09/17/00

ID: 6761
Updated by: stas
Reported By: coolfr3ak <email protected>
Status: Closed
Bug Type: *Function Specific
Assigned To:
Comments:

fixed in CVS

Previous Comments:
---------------------------------------------------------------------------

[2000-09-14 11:24:10] coolfr3ak <email protected>
If you call

decbin(-9);

which is equivilent to ~8(NOT 00001000) then it dosn't work - so if I wanted to do anything like removing a bit from a number like:

$byte3 = $byte1 | $byte2;

$byte1 = $byte3 & ~$byte2;

this works, but if you go

decbin(~$num);

then it throughts a woubly... just thought that maybe this function could be fixed to recognise - as signbit...

IcK

(Thanks about previous prob.. silly me = = == ... been using too much C++ and didn't realise php used == aswell :p)

---------------------------------------------------------------------------

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

-- 
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>