php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31490 integer problem
Submitted: 2005-01-11 11:52 UTC Modified: 2005-01-31 22:31 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: php at dicr dot org Assigned:
Status: No Feedback Package: Variables related
PHP Version: 4.3.10 OS: Fedora Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at dicr dot org
New email:
PHP Version: OS:

 

 [2005-01-11 11:52 UTC] php at dicr dot org
Description:
------------
printf("%X",0xFFFFFFFF) 
result of this is hard stupid: 7FFFFFF 
mus be: FFFFFFFF 
 
echo (int)0xFFFFFFFF 
result is hard stupid: 2147483647 
must be: -1 
 
 
 
 
 

Expected result:
----------------
printf("%X",0xFFFFFFFF) 
result: FFFFFFFF 
 
echo (int)0xFFFFFFFF 
result: -1 
 
 
 
 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-11 14:24 UTC] jorton@php.net
If you use the Fedora Core php package, current updates still have the float/long conversion patch applied: see https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=143514
this'll be fixed in the 4.3.11 updates as-and-when.
 [2005-01-31 22:31 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 05:01:30 2024 UTC