php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5382 & does not work with unsigned int32
Submitted: 2000-07-05 17:15 UTC Modified: 2000-08-20 02:48 UTC
From: casper at steinhauer dot dk Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Release Candidate 1 OS: Linux version 2.4.0-test2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: casper at steinhauer dot dk
New email:
PHP Version: OS:

 

 [2000-07-05 17:15 UTC] casper at steinhauer dot dk
#!/usr/local/bin/php -q
<?php

echo "here the & goes good\n";
$a=884330816;
print ($a);
print ("\n");
print (($a-256*256*256*128) & 255);
print ("\n");
print (($a) & 255);
print ("\n");

echo "here it goes bad\n";
$a=4076863680;
print ($a);
print ("\n");
print (($a-256*256*256*128) & 255);
print ("\n");
print (($a) & 255); # $a is an unsigned int32 when it is printed!
print ("\n");

?>

It works in PHP3

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-27 22:24 UTC] waldschrott@php.net
Please verify that it?s still happening using the latest version of PHP (release 4.0.1pl2 or CVS).
 [2000-08-20 02:48 UTC] sniper@php.net
No feedback from user.

--Jani
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 16:01:36 2025 UTC