|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6761 problem with decbin();
Submitted: 2000-09-14 11:24 UTC Modified: 2000-09-17 05:12 UTC
From: coolfr3ak at hotmail dot com Assigned:
Status: Closed Package: *Function Specific
PHP Version: 4.0.2 OS: Linux 6.1
Private report: No CVE-ID: None
 [2000-09-14 11:24 UTC] coolfr3ak at hotmail dot com
If you call


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


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


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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-17 05:12 UTC]
fixed in CVS
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun May 19 12:01:26 2019 UTC