PHP 4.0 Bug #6761 Updated: problem with decbin();

From: Date: Sun, 17 Sep 2000 09:12:24 +0000
Subject: PHP 4.0 Bug #6761 Updated: problem with decbin();
Groups: php.dev 
Request: Send a blank email to php-dev+get-33386@lists.php.net to get a copy of this message
ID: 6761 Updated by: stas Reported By: coolfr3ak@hotmail.com Status: Closed Bug Type: *Function Specific Assigned To: Comments: fixed in CVS Previous Comments: --------------------------------------------------------------------------- [2000-09-14 11:24:10] coolfr3ak@hotmail.com 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

« previous php.dev (#33386) next »