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
 [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-2019 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 04:01:25 2019 UTC