php.net |  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
30 + 15 = ?
Subscribe to this entry?

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

----
NAME
       uuid_parse - convert an input UUID string into binary representation

SYNOPSIS
       #include <uuid/uuid.h>

       int uuid_parse( char *in, uuid_t uu);

DESCRIPTION
       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?).

----

NAME
       uuid_unparse - convert an UUID from binary representation to a string

SYNOPSIS
       #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);

DESCRIPTION
       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.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-27 17:10 UTC] hholzgra@php.net
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 pecl.php.net.

In case this was a pecl.php.net 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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 17:01:30 2024 UTC