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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Tue Dec 07 00:03:49 2021 UTC