|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #57052 Support uuid_parse and uuid_unparse calls
Submitted: 2006-05-30 19:59 UTC Modified: 2008-03-27 17:10 UTC
From: turadg at berkeley dot edu Assigned:
Status: Closed Package: uuid (PECL)
PHP Version: Irrelevant 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.
Block user comment
Status: Assign to:
Bug Type:
From: turadg at berkeley dot edu
New email:
PHP Version: OS:


 [2006-05-30 19:59 UTC] turadg at berkeley dot edu
These two functions, also in libuuid, would be useful.

       uuid_parse - convert an input UUID string into binary representation

       #include <uuid/uuid.h>

       int uuid_parse( char *in, uuid_t uu);

       The  uuid_parse function converts the UUID string given by in into the binary representation.  The input
       UUID  is  a   string   of   the   form   1b4e28ba-2fa1-11d2-883f-b9a761bde3fb   (in   printf(3)   format
       "%08x-%04x-%04x-%04x-%012x", 36 bytes plus the trailing ?\0?).


       uuid_unparse - convert an UUID from binary representation to a string

       #include <uuid/uuid.h>

       void uuid_unparse(uuid_t uu, char *out);
       void uuid_unparse_upper(uuid_t uu, char *out);
       void uuid_unparse_lower(uuid_t uu, char *out);

       The  uuid_unparse  function  converts the supplied UUID uu from the binary representation into a 36-byte
       string (plus tailing ?\0?) of the form 1b4e28ba-2fa1-11d2-883f-b9a76 and stores this value in the  char-
       acter  string  pointed  to  by out.  The case of the hex digits returned by uuid_unparse may be upper or
       lower case, and is dependent on the system-dependent local default.

       If the case of the hex digits is important then the functions uuid_unparse_upper and  uuid_unparse_lower
       may be used.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-27 17:10 UTC]
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Jun 13 03:01:24 2021 UTC