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
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: 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

Pull Requests

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: Fri Dec 27 08:01:28 2024 UTC