php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #18686 Additional parameter for crc32
Submitted: 2002-08-01 11:00 UTC Modified: 2004-10-16 17:11 UTC
From: ahristov at icygen dot com Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.2.2 OS: All
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: ahristov at icygen dot com
New email:
PHP Version: OS:

 

 [2002-08-01 11:00 UTC] ahristov at icygen dot com
 Today I have faced problems in interoperability with Java. To check that some document is not updated I use crc32() in PHP, and my coleague some crc transformation in Java. When I get below zero result he passes me number above 2^31. Using dechex() is workaround because he has to pass me Hex value of the crc32 and I to check them as strings. Is there any chance for second parameter RETURN_FLOAT=FALSE - to have no problems like this with the overflow of the signed ints.
This will change the return type to mixed.

Regards,
Andrey

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-16 17:11 UTC] tony2001@php.net
Andrey said himself, that he doesn't need this feature anymore, as it's already well documented now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 22:01:30 2024 UTC