php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13150 sprintf("%08x",1<<31) generates -80000000
Submitted: 2001-09-05 10:09 UTC Modified: 2001-09-05 16:03 UTC
From: adler at bnl dot gov Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.0.6 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: adler at bnl dot gov
New email:
PHP Version: OS:

 

 [2001-09-05 10:09 UTC] adler at bnl dot gov
sprintf("%08x",1<<31)  generates -80000000, should generate 80000000.

That's it!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-05 10:20 UTC] stas@php.net
BTW: there's no such interer as 0x80000000 in PHP. PHP is limited by signed long.
 [2001-09-05 16:03 UTC] adler at bnl dot gov
Do you have a workaround?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 18:01:34 2024 UTC