Different binary results with different PHP versions



I am using Windows XP + PHP 5.1.2 at home for development and using
Linux + PHP 4.4.2 at server side. In my code, I am doing some bitwise
operations. While doing this, I have come accross to different results
from my functions that uses bitwise xor (^) operator. When I digg into
the code, I have tried to print out the binary of a decimal number. The
result was so:

echo decbin(-5817441119);
// Prints 10100101010000001110010010100001 at local (PHP 5.1.2)
// Prints 10000000000000000000000000000000 at server (PHP 4.4.2)

Is this a bug? How can I workaround this problem? Thanks.

.



Relevant Pages

  • Re: Send Mail From Outlook Web Access
    ... > Is there a way to send email on Linux to an Exchange Server from PHP ... > with our rogue SMTP server access and force everything through Exchange ...
    (comp.lang.php)
  • Re: Apache vs IIS
    ... on my Windows Server not on my Linux Server so there for I would chose IIS. ... You can run asp on Apache server, and you can do that even on an Apache running on a Linux server. ... PHP on a IIS server is rather easy to run once you install PHP on a PC but if you only use PHP why not use Apache for Windows. ...
    (alt.php)
  • Re: [PHP] Intro to PHP question
    ... I am using a windows machine locally but the server I am doing this all in is a Linux server which I am accessing through putty. ... [PHP] Intro to PHP question ...
    (php.general)
  • Include() & Paths - Best Practices
    ... I have a question regarding paths and the includestatement in PHP. ... I develop in a Windows environment and will be publishing to a Linux ... change them all every time I have to publish to the production server ...
    (comp.lang.php)
  • Re: Send Mail From Outlook Web Access
    ... > Is there a way to send email on Linux to an Exchange Server from PHP ... > with our rogue SMTP server access and force everything through Exchange ...
    (comp.lang.php)