php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2275 Uniqid() inconstistent with previous versions of PHP3
Submitted: 1999-09-10 06:15 UTC Modified: 1999-09-20 12:33 UTC
From: doussot at gifrance dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Latest CVS (10/09/1999) 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: doussot at gifrance dot com
New email:
PHP Version: OS:

 

 [1999-09-10 06:15 UTC] doussot at gifrance dot com
Hello,

I noticed that current Uniqid() code is inconsistent with previous PHP3 versions: the new "lcg" part returned at the end of the ID increase the size of the value which is a big problem if this id is inserted in a database field with fixed length. This part should be optional (default off).

Thanks.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-20 12:33 UTC] sas at cvs dot php dot net
fixed, I've merged the changes into php3
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 16:00:02 2026 UTC