Projects
home:rottame:vhosts-ng:php8-extensions
php8-uuid
Log In
Username
Password
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 3
View file
php8-uuid.changes
Changed
@@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Mon May 19 14:17:21 UTC 2025 - Angelo Grossini <angelo@intercom.it> + +- update to 1.3.0 + +------------------------------------------------------------------- Wed Aug 16 12:46:15 UTC 2023 - Angelo Grossini <rottame@intercom.it> - vhng versioning
View file
php8-uuid.spec
Changed
@@ -19,7 +19,7 @@ %define pkg_name uuid # Name: php8-uuid -Version: 1.2.0 +Version: 1.3.0 Release: lp151.4.1 Summary: PHP UUID support functions License: LGPL-2.1
View file
uuid-1.2.0.tgz/uuid-1.2.0/config.m4
Deleted
@@ -1,36 +0,0 @@ -PHP_ARG_WITH(uuid, whether uuid is available, --with-uuid=DIR With uuid support) - -if test "$PHP_UUID" != "no"; then - - AC_MSG_CHECKING(for the location of libuuid) - for dir in $PHP_UUID /usr/local /usr; do - if test -f "$dir/include/uuid/uuid.h"; then - PHP_UUID_DIR="$dir" - fi - done - if test -z "$PHP_UUID_DIR"; then - AC_MSG_ERROR(not found) - else - AC_MSG_RESULT(found in $PHP_UUID_DIR) - fi - PHP_ADD_INCLUDE($PHP_UUID_DIR/include) - PHP_CHECK_FUNC_LIB(uuid_type, uuid) - PHP_CHECK_FUNC_LIB(uuid_variant, uuid) - PHP_CHECK_FUNC_LIB(uuid_generate_md5, uuid) - PHP_CHECK_FUNC_LIB(uuid_generate_sha1, uuid) - - export OLD_CPPFLAGS="$CPPFLAGS" - export CPPFLAGS="$CPPFLAGS $INCLUDES -DHAVE_UUID" - AC_CHECK_HEADER(uuid/uuid.h, , AC_MSG_ERROR('uuid/uuid.h' header not found)) - PHP_SUBST(UUID_SHARED_LIBADD) - - PHP_ADD_LIBRARY_WITH_PATH(uuid, $PHP_UUID_DIR/$PHP_LIBDIR, UUID_SHARED_LIBADD) - export CPPFLAGS="$OLD_CPPFLAGS" - - PHP_SUBST(UUID_SHARED_LIBADD) - AC_DEFINE(HAVE_UUID, 1, ) - - PHP_NEW_EXTENSION(uuid, uuid.c , $ext_shared) - -fi -
View file
uuid-1.2.0.tgz/uuid-1.2.0/php_uuid.h
Deleted
@@ -1,98 +0,0 @@ -/* - +----------------------------------------------------------------------+ - | This library is free software; you can redistribute it and/or | - | modify it under the terms of the GNU Lesser General Public | - | License as published by the Free Software Foundation; either | - | version 2.1 of the License, or (at your option) any later version. | - | | - | This library is distributed in the hope that it will be useful, | - | but WITHOUT ANY WARRANTY; without even the implied warranty of | - | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | - | Lesser General Public License for more details. | - | | - | You should have received a copy of the GNU Lesser General Public | - | License in the file LICENSE along with this library; | - | if not, write to the | - | | - | Free Software Foundation, Inc., | - | 59 Temple Place, Suite 330, | - | Boston, MA 02111-1307 USA | - +----------------------------------------------------------------------+ - | Authors: Hartmut Holzgraefe <hartmut@php.net> | - | Remi Collet <remi@php.net> | - +----------------------------------------------------------------------+ -*/ - -#ifndef PHP_UUID_H -#define PHP_UUID_H - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include <php.h> - -#ifdef HAVE_UUID -#define PHP_UUID_VERSION "1.2.0" -#define PHP_UUID_RELEASED "2020-10-06" -#define PHP_UUID_STATE "stable" -#define PHP_UUID_AUTHORS "Hartmut Holzgraefe, Remi Collet" - - -#include <php_ini.h> -#include <SAPI.h> -#include <ext/standard/info.h> -#include <Zend/zend_extensions.h> -#ifdef __cplusplus -} // extern "C" -#endif -#include <uuid/uuid.h> -#ifdef __cplusplus -extern "C" { -#endif - -extern zend_module_entry uuid_module_entry; -#define phpext_uuid_ptr &uuid_module_entry - -#ifdef PHP_WIN32 -#define PHP_UUID_API __declspec(dllexport) -#else -#define PHP_UUID_API -#endif - -PHP_MINIT_FUNCTION(uuid); -PHP_MSHUTDOWN_FUNCTION(uuid); -PHP_RINIT_FUNCTION(uuid); -PHP_RSHUTDOWN_FUNCTION(uuid); -PHP_MINFO_FUNCTION(uuid); - -#ifdef __cplusplus -} // extern "C" -#endif - -/* mirrored PHP Constants */ -#define UUID_TYPE_DEFAULT 0 -#define UUID_TYPE_TIME UUID_TYPE_DCE_TIME -#define UUID_TYPE_DCE UUID_TYPE_DCE_RANDOM -#define UUID_TYPE_NAME UUID_TYPE_DCE_TIME -#define UUID_TYPE_RANDOM UUID_TYPE_DCE_RANDOM -#define UUID_TYPE_NULL -1 -#define UUID_TYPE_INVALID -42 - -#endif /* PHP_HAVE_UUID */ - -#endif /* PHP_UUID_H */ - - -/* - * Local variables: - * tab-width: 4 - * c-basic-offset: 4 - * End: - * vim600: noet sw=4 ts=4 fdm=marker - * vim<600: noet sw=4 ts=4 - */
View file
uuid-1.2.0.tgz/uuid-1.2.0/tests/uuid_mac.phpt
Deleted
@@ -1,24 +0,0 @@ ---TEST-- -uuid_mac() function ---SKIPIF-- -<?php - -if(!extension_loaded('uuid')) die('skip '); - - ?> ---FILE-- -<?php -var_dump(uuid_mac("b691c99c-7fc5-11d8-9fa8-00065b896488")); -try { - if (!uuid_mac("878b258c-a9f1-467c-8e1d-47d79ca2c01b")) { - echo "OK\n"; // PHP 7 - } -} catch (ValueError $e) { - echo $e->getMessage() . "\n"; // PHP 8 - echo "OK\n"; -} - -?> ---EXPECTF-- -string(12) "00065b896488" -%A Argument #1 ($uuid) UUID DCE TIME expecte%AOK
View file
uuid-1.2.0.tgz/uuid-1.2.0/tests/uuid_time.phpt
Deleted
@@ -1,24 +0,0 @@ ---TEST-- -uuid_time() function ---SKIPIF-- -<?php - -if(!extension_loaded('uuid')) die('skip '); - - ?> ---FILE-- -<?php -var_dump(uuid_time("b691c99c-7fc5-11d8-9fa8-00065b896488")); -try { - if (!uuid_time("878b258c-a9f1-467c-8e1d-47d79ca2c01b")) { - echo "OK\n"; // PHP 7 - } -} catch (ValueError $e) { - echo $e->getMessage() . "\n"; // PHP 8 - echo "OK\n"; -} - -?> ---EXPECTF-- -int(1080374815) -%A UUID DCE TIME expecte%AOK
View file
uuid-1.2.0.tgz/uuid-1.2.0/uuid.c
Deleted
@@ -1,474 +0,0 @@ -/* - +----------------------------------------------------------------------+ - | This library is free software; you can redistribute it and/or | - | modify it under the terms of the GNU Lesser General Public | - | License as published by the Free Software Foundation; either | - | version 2.1 of the License, or (at your option) any later version. | - | | - | This library is distributed in the hope that it will be useful, | - | but WITHOUT ANY WARRANTY; without even the implied warranty of | - | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | - | Lesser General Public License for more details. | - | | - | You should have received a copy of the GNU Lesser General Public | - | License in the file LICENSE along with this library; | - | if not, write to the | - | | - | Free Software Foundation, Inc., | - | 59 Temple Place, Suite 330, | - | Boston, MA 02111-1307 USA | - +----------------------------------------------------------------------+ - | Authors: Hartmut Holzgraefe <hartmut@php.net> | - | Remi Collet <remi@php.net> | - +----------------------------------------------------------------------+ -*/ - -#include "php_uuid.h" - -#ifdef HAVE_UUID - -#if PHP_VERSION_ID < 80000 -#define VALUE_ERROR(n,name,msg) php_error_docref(NULL, E_WARNING, "Argument #%d (%s) %s", n, name, msg); RETURN_FALSE -#define RETURN_THROWS() return - -#include "uuid_legacy_arginfo.h" -#else -#define VALUE_ERROR(n,name,msg) zend_argument_value_error(n, msg); RETURN_THROWS() - -#include "uuid_arginfo.h" -#endif - - -/* {{{ uuid_module_entry - */ -zend_module_entry uuid_module_entry = { - STANDARD_MODULE_HEADER, - "uuid", - ext_functions, - PHP_MINIT(uuid), /* Replace with NULL if there is nothing to do at php startup */ - NULL, /* Replace with NULL if there is nothing to do at php shutdown */ - NULL, /* Replace with NULL if there is nothing to do at request start */ - NULL, /* Replace with NULL if there is nothing to do at request end */ - PHP_MINFO(uuid), - PHP_UUID_VERSION, - STANDARD_MODULE_PROPERTIES -}; -/* }}} */ - -#ifdef COMPILE_DL_UUID -ZEND_GET_MODULE(uuid) -#endif - - -/* {{{ PHP_MINIT_FUNCTION */ -PHP_MINIT_FUNCTION(uuid) -{ -#ifdef UUID_VARIANT_NCS - REGISTER_LONG_CONSTANT("UUID_VARIANT_NCS", UUID_VARIANT_NCS, CONST_PERSISTENT | CONST_CS); -#endif /* UUID_VARIANT_NCS */ -#ifdef UUID_VARIANT_DCE - REGISTER_LONG_CONSTANT("UUID_VARIANT_DCE", UUID_VARIANT_DCE, CONST_PERSISTENT | CONST_CS); -#endif /* UUID_VARIANT_DCE */ -#ifdef UUID_VARIANT_MICROSOFT - REGISTER_LONG_CONSTANT("UUID_VARIANT_MICROSOFT", UUID_VARIANT_MICROSOFT, CONST_PERSISTENT | CONST_CS); -#endif /* UUID_VARIANT_MICROSOFT */ -#ifdef UUID_VARIANT_OTHER - REGISTER_LONG_CONSTANT("UUID_VARIANT_OTHER", UUID_VARIANT_OTHER, CONST_PERSISTENT | CONST_CS); -#endif /* UUID_VARIANT_OTHER */ - REGISTER_LONG_CONSTANT("UUID_TYPE_DEFAULT", 0, CONST_PERSISTENT | CONST_CS); -/* deprecated alias */ - REGISTER_LONG_CONSTANT("UUID_TYPE_DCE", UUID_TYPE_DCE_RANDOM, CONST_PERSISTENT | CONST_CS); - REGISTER_LONG_CONSTANT("UUID_TYPE_NAME", UUID_TYPE_DCE_TIME, CONST_PERSISTENT | CONST_CS); -/* library types */ - REGISTER_LONG_CONSTANT("UUID_TYPE_TIME", UUID_TYPE_DCE_TIME, CONST_PERSISTENT | CONST_CS); -#ifdef UUID_TYPE_DCE_SECURITY - REGISTER_LONG_CONSTANT("UUID_TYPE_SECURITY", UUID_TYPE_DCE_SECURITY, CONST_PERSISTENT | CONST_CS); -#endif -#ifdef UUID_TYPE_DCE_MD5 - REGISTER_LONG_CONSTANT("UUID_TYPE_MD5", UUID_TYPE_DCE_MD5, CONST_PERSISTENT | CONST_CS); -#endif - REGISTER_LONG_CONSTANT("UUID_TYPE_RANDOM", UUID_TYPE_DCE_RANDOM, CONST_PERSISTENT | CONST_CS); -#ifdef UUID_TYPE_DCE_SHA1 - REGISTER_LONG_CONSTANT("UUID_TYPE_SHA1", UUID_TYPE_DCE_SHA1, CONST_PERSISTENT | CONST_CS); -#endif -/* extension specific types */ - REGISTER_LONG_CONSTANT("UUID_TYPE_NULL", -1, CONST_PERSISTENT | CONST_CS); - REGISTER_LONG_CONSTANT("UUID_TYPE_INVALID", -42, CONST_PERSISTENT | CONST_CS); - - /* add your stuff here */ - - return SUCCESS; -} -/* }}} */ - - -/* {{{ PHP_MINFO_FUNCTION */ -PHP_MINFO_FUNCTION(uuid) -{ - php_info_print_table_start(); - php_info_print_table_header(2, "UUID extension", "enabled"); - php_info_print_table_row(2, "Version", PHP_UUID_VERSION " (" PHP_UUID_STATE ")"); - php_info_print_table_row(2, "Released", PHP_UUID_RELEASED); - php_info_print_table_row(2, "Authors", PHP_UUID_AUTHORS); - php_info_print_table_end(); - /* add your stuff here */ - -} -/* }}} */ - - -/* {{{ proto string uuid_create(int uuid_type) - Generate a new UUID */ -PHP_FUNCTION(uuid_create) -{ - - zend_long uuid_type = UUID_TYPE_DEFAULT; - uuid_t uuid; - char uuid_str37; - - - - if (zend_parse_parameters(ZEND_NUM_ARGS(), "|l", &uuid_type) == FAILURE) { - RETURN_THROWS(); - } - - switch(uuid_type) { - case UUID_TYPE_DCE_TIME: - uuid_generate_time(uuid); - break; - case UUID_TYPE_DCE_RANDOM: - uuid_generate_random(uuid); - break; - case UUID_TYPE_DEFAULT: - uuid_generate(uuid); - break; - default: -#if PHP_VERSION_ID < 80000 - php_error_docref(NULL, - E_WARNING, - "Unknown/invalid UUID type '%ld' requested, using default type instead", - uuid_type); - uuid_generate(uuid); -#else - zend_argument_value_error(1, "Unknown/invalid UUID type '" ZEND_LONG_FMT "'", uuid_type); - RETURN_THROWS(); -#endif - break; - } - - uuid_unparse(uuid, uuid_str); - - RETURN_STRING(uuid_str); -} -/* }}} uuid_create */ - - -/* {{{ proto bool uuid_is_valid(string uuid) - Check whether a given UUID string is a valid UUID */ -PHP_FUNCTION(uuid_is_valid) -{ - - const char * uuid = NULL; - size_t uuid_len = 0; - uuid_t u; - - - - if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &uuid, &uuid_len) == FAILURE) { - RETURN_THROWS(); - } - - RETURN_BOOL(0 == uuid_parse(uuid, u)); -} -/* }}} uuid_is_valid */ - - -/* {{{ proto int uuid_compare(string uuid1, string uuid2) - Compare two UUIDs */ -PHP_FUNCTION(uuid_compare) -{ - - const char * uuid1 = NULL; - size_t uuid1_len = 0; - const char * uuid2 = NULL; - size_t uuid2_len = 0; - uuid_t u1, u2; - - - - if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss", &uuid1, &uuid1_len, &uuid2, &uuid2_len) == FAILURE) {
View file
uuid-1.2.0.tgz/uuid-1.2.0/uuid.stub.php
Deleted
@@ -1,39 +0,0 @@ -<?php - -/** - * @generate-function-entries - * @generate-legacy-arginfo - */ - -function uuid_create(int $uuid_type=UUID_TYPE_DEFAULT): string {} - -function uuid_is_valid(string $uuid): bool {} - -function uuid_compare(string $uuid1, string $uuid2): int {} - -function uuid_is_null(string $uuid): bool {} - -#ifdef HAVE_UUID_GENERATE_MD5 -function uuid_generate_md5(string $uuid_ns, string $name): string {} -#endif - -#ifdef HAVE_UUID_GENERATE_SHA1 -function uuid_generate_sha1(string $uuid_ns, string $name): string {} -#endif - -#ifdef HAVE_UUID_TYPE -function uuid_type(string $uuid): int {} -#endif - -#ifdef HAVE_UUID_VARIANT -function uuid_variant(string $uuid): int {} -#endif - -function uuid_time(string $uuid): int {} - -function uuid_mac(string $uuid): string {} - -function uuid_parse(string $uuid): string {} - -function uuid_unparse(string $uuid): string {} -
View file
uuid-1.2.0.tgz/uuid-1.2.0/uuid_arginfo.h
Deleted
@@ -1,102 +0,0 @@ -/* This is a generated file, edit the .stub.php file instead. - * Stub hash: c42576a38350ab4b21889bc077e8a414311653cd */ - -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_uuid_create, 0, 0, IS_STRING, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, uuid_type, IS_LONG, 0, "UUID_TYPE_DEFAULT") -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_uuid_is_valid, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, uuid, IS_STRING, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_uuid_compare, 0, 2, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, uuid1, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, uuid2, IS_STRING, 0) -ZEND_END_ARG_INFO() - -#define arginfo_uuid_is_null arginfo_uuid_is_valid - -#if defined(HAVE_UUID_GENERATE_MD5) -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_uuid_generate_md5, 0, 2, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, uuid_ns, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -ZEND_END_ARG_INFO() -#endif - -#if defined(HAVE_UUID_GENERATE_SHA1) -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_uuid_generate_sha1, 0, 2, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, uuid_ns, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -ZEND_END_ARG_INFO() -#endif - -#if defined(HAVE_UUID_TYPE) -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_uuid_type, 0, 1, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, uuid, IS_STRING, 0) -ZEND_END_ARG_INFO() -#endif - -#if defined(HAVE_UUID_VARIANT) -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_uuid_variant, 0, 1, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, uuid, IS_STRING, 0) -ZEND_END_ARG_INFO() -#endif - -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_uuid_time, 0, 1, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, uuid, IS_STRING, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_uuid_mac, 0, 1, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, uuid, IS_STRING, 0) -ZEND_END_ARG_INFO() - -#define arginfo_uuid_parse arginfo_uuid_mac - -#define arginfo_uuid_unparse arginfo_uuid_mac - - -ZEND_FUNCTION(uuid_create); -ZEND_FUNCTION(uuid_is_valid); -ZEND_FUNCTION(uuid_compare); -ZEND_FUNCTION(uuid_is_null); -#if defined(HAVE_UUID_GENERATE_MD5) -ZEND_FUNCTION(uuid_generate_md5); -#endif -#if defined(HAVE_UUID_GENERATE_SHA1) -ZEND_FUNCTION(uuid_generate_sha1); -#endif -#if defined(HAVE_UUID_TYPE) -ZEND_FUNCTION(uuid_type); -#endif -#if defined(HAVE_UUID_VARIANT) -ZEND_FUNCTION(uuid_variant); -#endif -ZEND_FUNCTION(uuid_time); -ZEND_FUNCTION(uuid_mac); -ZEND_FUNCTION(uuid_parse); -ZEND_FUNCTION(uuid_unparse); - - -static const zend_function_entry ext_functions = { - ZEND_FE(uuid_create, arginfo_uuid_create) - ZEND_FE(uuid_is_valid, arginfo_uuid_is_valid) - ZEND_FE(uuid_compare, arginfo_uuid_compare) - ZEND_FE(uuid_is_null, arginfo_uuid_is_null) -#if defined(HAVE_UUID_GENERATE_MD5) - ZEND_FE(uuid_generate_md5, arginfo_uuid_generate_md5) -#endif -#if defined(HAVE_UUID_GENERATE_SHA1) - ZEND_FE(uuid_generate_sha1, arginfo_uuid_generate_sha1) -#endif -#if defined(HAVE_UUID_TYPE) - ZEND_FE(uuid_type, arginfo_uuid_type) -#endif -#if defined(HAVE_UUID_VARIANT) - ZEND_FE(uuid_variant, arginfo_uuid_variant) -#endif - ZEND_FE(uuid_time, arginfo_uuid_time) - ZEND_FE(uuid_mac, arginfo_uuid_mac) - ZEND_FE(uuid_parse, arginfo_uuid_parse) - ZEND_FE(uuid_unparse, arginfo_uuid_unparse) - ZEND_FE_END -};
View file
uuid-1.2.0.tgz/uuid-1.2.0/uuid_legacy_arginfo.h
Deleted
@@ -1,98 +0,0 @@ -/* This is a generated file, edit the .stub.php file instead. - * Stub hash: c42576a38350ab4b21889bc077e8a414311653cd */ - -ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_create, 0, 0, 0) - ZEND_ARG_INFO(0, uuid_type) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_is_valid, 0, 0, 1) - ZEND_ARG_INFO(0, uuid) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_compare, 0, 0, 2) - ZEND_ARG_INFO(0, uuid1) - ZEND_ARG_INFO(0, uuid2) -ZEND_END_ARG_INFO() - -#define arginfo_uuid_is_null arginfo_uuid_is_valid - -#if defined(HAVE_UUID_GENERATE_MD5) -ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_generate_md5, 0, 0, 2) - ZEND_ARG_INFO(0, uuid_ns) - ZEND_ARG_INFO(0, name) -ZEND_END_ARG_INFO() -#endif - -#if defined(HAVE_UUID_GENERATE_SHA1) -ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_generate_sha1, 0, 0, 2) - ZEND_ARG_INFO(0, uuid_ns) - ZEND_ARG_INFO(0, name) -ZEND_END_ARG_INFO() -#endif - -#if defined(HAVE_UUID_TYPE) -ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_type, 0, 0, 1) - ZEND_ARG_INFO(0, uuid) -ZEND_END_ARG_INFO() -#endif - -#if defined(HAVE_UUID_VARIANT) -ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_variant, 0, 0, 1) - ZEND_ARG_INFO(0, uuid) -ZEND_END_ARG_INFO() -#endif - -#define arginfo_uuid_time arginfo_uuid_is_valid - -#define arginfo_uuid_mac arginfo_uuid_is_valid - -#define arginfo_uuid_parse arginfo_uuid_is_valid - -#define arginfo_uuid_unparse arginfo_uuid_is_valid - - -ZEND_FUNCTION(uuid_create); -ZEND_FUNCTION(uuid_is_valid); -ZEND_FUNCTION(uuid_compare); -ZEND_FUNCTION(uuid_is_null); -#if defined(HAVE_UUID_GENERATE_MD5) -ZEND_FUNCTION(uuid_generate_md5); -#endif -#if defined(HAVE_UUID_GENERATE_SHA1) -ZEND_FUNCTION(uuid_generate_sha1); -#endif -#if defined(HAVE_UUID_TYPE) -ZEND_FUNCTION(uuid_type); -#endif -#if defined(HAVE_UUID_VARIANT) -ZEND_FUNCTION(uuid_variant); -#endif -ZEND_FUNCTION(uuid_time); -ZEND_FUNCTION(uuid_mac); -ZEND_FUNCTION(uuid_parse); -ZEND_FUNCTION(uuid_unparse); - - -static const zend_function_entry ext_functions = { - ZEND_FE(uuid_create, arginfo_uuid_create) - ZEND_FE(uuid_is_valid, arginfo_uuid_is_valid) - ZEND_FE(uuid_compare, arginfo_uuid_compare) - ZEND_FE(uuid_is_null, arginfo_uuid_is_null) -#if defined(HAVE_UUID_GENERATE_MD5) - ZEND_FE(uuid_generate_md5, arginfo_uuid_generate_md5) -#endif -#if defined(HAVE_UUID_GENERATE_SHA1) - ZEND_FE(uuid_generate_sha1, arginfo_uuid_generate_sha1) -#endif -#if defined(HAVE_UUID_TYPE) - ZEND_FE(uuid_type, arginfo_uuid_type) -#endif -#if defined(HAVE_UUID_VARIANT) - ZEND_FE(uuid_variant, arginfo_uuid_variant) -#endif - ZEND_FE(uuid_time, arginfo_uuid_time) - ZEND_FE(uuid_mac, arginfo_uuid_mac) - ZEND_FE(uuid_parse, arginfo_uuid_parse) - ZEND_FE(uuid_unparse, arginfo_uuid_unparse) - ZEND_FE_END -};
View file
uuid-1.2.0.tgz/package.xml -> uuid-1.3.0.tgz/package.xml
Changed
@@ -1,9 +1,9 @@ <?xml version="1.0" encoding="ISO-8859-1"?> -<package packagerversion="1.10.12" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> +<package packagerversion="1.10.16" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> <name>uuid</name> <channel>pecl.php.net</channel> <summary>UUID extension</summary> - <description>A wrapper around libuuid from the ext2utils project.</description> + <description>A wrapper around Universally Unique IDentifier library (libuuid).</description> <lead> <name>Hartmut Holzgraefe</name> <user>hholzgra</user> @@ -16,45 +16,48 @@ <email>remi@php.net</email> <active>yes</active> </lead> - <date>2020-10-06</date> - <time>10:50:46</time> + <date>2025-05-12</date> + <time>13:11:20</time> <version> - <release>1.2.0</release> - <api>1.1.0</api> + <release>1.3.0</release> + <api>1.3.0</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> - <license filesource="LICENSE" uri="http://www.gnu.org/licenses/licenses.html#LGPL">LGPL</license> + <license filesource="LICENSE" uri="https://www.gnu.org/licenses/lgpl-2.1.html">LGPL-2.1-or-later</license> <notes> -- raise warnings on bad input value with PHP 7 -- promote warnings to ValueError with PHP 8 -- add type hinting with PHP 8 -- fix bug #66982 uuid_mac checks wrong bit/byte for valid MAC address +- Add support for RFC9562 UUIDs (UUID_TYPE_TIME_V6 and UUID_TYPE_TIME_V7) + when available, in libuuid from util-linux version 2.41 +- constant UUID_TYPE_DCE is deprecated, use UUID_TYPE_RANDOM instead +- constant UUID_TYPE_NAME is deprecated, use UUID_TYPE_TIME instead +- new constant UUID_TYPE_VENDOR, only for uuid_type </notes> <contents> <dir name="/"> <file md5sum="9afce01c25a6cbe9f8f5627fbcc53167" name="tests/uuid_create.phpt" role="test" /> + <file md5sum="43ca40d2b020e962f7b73382217169e6" name="tests/uuid_create_time_v6.phpt" role="test" /> + <file md5sum="61f2cbfd1daaeea316582dafe7f2ee64" name="tests/uuid_create_time_v7.phpt" role="test" /> <file md5sum="8c7efb4f168e3e593a2d1d8f270d7135" name="tests/uuid_is_valid.phpt" role="test" /> <file md5sum="48b472615049e370f102c14e9e4716c8" name="tests/uuid_compare.phpt" role="test" /> <file md5sum="81fb7ed2841f9d4b5193e29bd52ad9fb" name="tests/uuid_is_null.phpt" role="test" /> <file md5sum="dcca7d052406f3f31b2884b31150dad8" name="tests/uuid_type.phpt" role="test" /> <file md5sum="8905c17120a919ecad1d34de620f10a2" name="tests/uuid_variant.phpt" role="test" /> - <file md5sum="a6804d0c808c2c070cbe5f5fabc8308a" name="tests/uuid_time.phpt" role="test" /> - <file md5sum="e6c7ee8a363300e568e995908e347abe" name="tests/uuid_mac.phpt" role="test" /> + <file md5sum="89133f7aeb289c6eb17f2570f2520ee2" name="tests/uuid_time.phpt" role="test" /> + <file md5sum="23bd7dffdfebb0aac942a4c118674e73" name="tests/uuid_mac.phpt" role="test" /> <file md5sum="e6d43b52307a23efa8732399eddc57ef" name="tests/uuid_parse.phpt" role="test" /> <file md5sum="a01f3141622aef298de5b3986509d7ee" name="tests/uuid_unparse.phpt" role="test" /> <file md5sum="6bca5ec56ebfef6ab0c6d068a06f447a" name="tests/uuid_generate_md5.phpt" role="test" /> <file md5sum="1783c6260397ad6278f274a0c2248014" name="tests/uuid_generate_sha1.phpt" role="test" /> <file md5sum="586a97ca627942e6940053fd574fa4d3" name="CREDITS" role="doc" /> <file md5sum="d7b37bf80a3df5a65b355433ae36d206" name="LICENSE" role="doc" /> - <file md5sum="84eaad30fb6dfc1622bbc67f99c0329f" name="config.m4" role="src" /> - <file md5sum="1f97a09ee463e2bcb78825f26ee2e4a7" name="uuid.c" role="src" /> - <file md5sum="21b098bf4fee92c7e7ccfedd20cf95d1" name="uuid.stub.php" role="src" /> - <file md5sum="85a122e997ec4efca4761bc670a42cda" name="uuid_arginfo.h" role="src" /> - <file md5sum="5e3f069fcc19ff13615b99394143ecfb" name="uuid_legacy_arginfo.h" role="src" /> - <file md5sum="5027abacf741957516a7457dd60592b8" name="php_uuid.h" role="src" /> + <file md5sum="f8770af25f31d0f936ff147ac2e2c0fe" name="config.m4" role="src" /> + <file md5sum="7f2cae9d24e0f24cbd6edc8c76ba3389" name="uuid.c" role="src" /> + <file md5sum="ca4dc3e0ae1256c12a94099881856fde" name="uuid.stub.php" role="src" /> + <file md5sum="b5b50063232756d79797c0a89a785714" name="uuid_arginfo.h" role="src" /> + <file md5sum="2643cb34ad1a28c1f3571b2e059eadbe" name="uuid_legacy_arginfo.h" role="src" /> + <file md5sum="fd899fd04e7f77e47eb38eaf1f565c3c" name="php_uuid.h" role="src" /> </dir> </contents> <dependencies> @@ -76,6 +79,40 @@ </extsrcrelease> <changelog> <release> + <date>2024-10-08</date> + <version> + <release>1.2.1</release> + <api>1.1.0</api> + </version> + <stability> + <release>stable</release> + <api>stable</api> + </stability> + <license filesource="LICENSE" uri="https://www.gnu.org/licenses/lgpl-2.1.html">LGPL-2.1-or-later</license> + <notes> +- MacOS support (Sean Molenaar) +- fix for util-linux/libuuid 2.40 and uuid_time64 + </notes> + </release> + <release> + <date>2020-10-06</date> + <version> + <release>1.2.0</release> + <api>1.1.0</api> + </version> + <stability> + <release>stable</release> + <api>stable</api> + </stability> + <license filesource="LICENSE" uri="http://www.gnu.org/licenses/licenses.html#LGPL">LGPL</license> + <notes> +- raise warnings on bad input value with PHP 7 +- promote warnings to ValueError with PHP 8 +- add type hinting with PHP 8 +- fix bug #66982 uuid_mac checks wrong bit/byte for valid MAC address + </notes> + </release> + <release> <date>2019-11-28</date> <version> <release>1.1.0</release>
View file
uuid-1.3.0.tgz/uuid-1.3.0/CREDITS
Changed
(renamed from uuid-1.2.0/CREDITS)
View file
uuid-1.3.0.tgz/uuid-1.3.0/LICENSE
Changed
(renamed from uuid-1.2.0/LICENSE)
View file
uuid-1.3.0.tgz/uuid-1.3.0/config.m4
Added
@@ -0,0 +1,38 @@ +PHP_ARG_WITH(uuid, whether uuid is available, --with-uuid=DIR With uuid support) + +if test "$PHP_UUID" != "no"; then + + AC_MSG_CHECKING(for the location of libuuid) + for dir in $PHP_UUID /usr/local /usr; do + if test -f "$dir/include/uuid/uuid.h"; then + PHP_UUID_DIR="$dir" + fi + done + if test -z "$PHP_UUID_DIR"; then + AC_MSG_ERROR(not found) + else + AC_MSG_RESULT(found in $PHP_UUID_DIR) + fi + PHP_ADD_INCLUDE($PHP_UUID_DIR/include) + PHP_CHECK_FUNC_LIB(uuid_type, uuid) + PHP_CHECK_FUNC_LIB(uuid_variant, uuid) + PHP_CHECK_FUNC_LIB(uuid_generate_md5, uuid) + PHP_CHECK_FUNC_LIB(uuid_generate_sha1, uuid) + PHP_CHECK_FUNC_LIB(uuid_time, uuid) + PHP_CHECK_FUNC_LIB(uuid_time64, uuid) + + export OLD_CPPFLAGS="$CPPFLAGS" + export CPPFLAGS="$CPPFLAGS $INCLUDES -DHAVE_UUID" + AC_CHECK_HEADER(uuid/uuid.h, , AC_MSG_ERROR('uuid/uuid.h' header not found)) + PHP_SUBST(UUID_SHARED_LIBADD) + + PHP_ADD_LIBRARY_WITH_PATH(uuid, $PHP_UUID_DIR/$PHP_LIBDIR, UUID_SHARED_LIBADD) + export CPPFLAGS="$OLD_CPPFLAGS" + + PHP_SUBST(UUID_SHARED_LIBADD) + AC_DEFINE(HAVE_UUID, 1, ) + + PHP_NEW_EXTENSION(uuid, uuid.c , $ext_shared) + +fi +
View file
uuid-1.3.0.tgz/uuid-1.3.0/php_uuid.h
Added
@@ -0,0 +1,98 @@ +/* + +----------------------------------------------------------------------+ + | This library is free software; you can redistribute it and/or | + | modify it under the terms of the GNU Lesser General Public | + | License as published by the Free Software Foundation; either | + | version 2.1 of the License, or (at your option) any later version. | + | | + | This library is distributed in the hope that it will be useful, | + | but WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | + | Lesser General Public License for more details. | + | | + | You should have received a copy of the GNU Lesser General Public | + | License in the file LICENSE along with this library; | + | if not, write to the | + | | + | Free Software Foundation, Inc., | + | 59 Temple Place, Suite 330, | + | Boston, MA 02111-1307 USA | + +----------------------------------------------------------------------+ + | Authors: Hartmut Holzgraefe <hartmut@php.net> | + | Remi Collet <remi@php.net> | + +----------------------------------------------------------------------+ +*/ + +#ifndef PHP_UUID_H +#define PHP_UUID_H + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include <php.h> + +#ifdef HAVE_UUID +#define PHP_UUID_VERSION "1.3.0" +#define PHP_UUID_RELEASED "2025-05-12" +#define PHP_UUID_STATE "stable" +#define PHP_UUID_AUTHORS "Hartmut Holzgraefe, Remi Collet" + + +#include <php_ini.h> +#include <SAPI.h> +#include <ext/standard/info.h> +#include <Zend/zend_extensions.h> +#ifdef __cplusplus +} // extern "C" +#endif +#include <uuid/uuid.h> +#ifdef __cplusplus +extern "C" { +#endif + +extern zend_module_entry uuid_module_entry; +#define phpext_uuid_ptr &uuid_module_entry + +#ifdef PHP_WIN32 +#define PHP_UUID_API __declspec(dllexport) +#else +#define PHP_UUID_API +#endif + +PHP_MINIT_FUNCTION(uuid); +PHP_MSHUTDOWN_FUNCTION(uuid); +PHP_RINIT_FUNCTION(uuid); +PHP_RSHUTDOWN_FUNCTION(uuid); +PHP_MINFO_FUNCTION(uuid); + +#ifdef __cplusplus +} // extern "C" +#endif + +/* mirrored PHP Constants */ +#define UUID_TYPE_DEFAULT 0 +#define UUID_TYPE_TIME UUID_TYPE_DCE_TIME +#define UUID_TYPE_DCE UUID_TYPE_DCE_RANDOM +#define UUID_TYPE_NAME UUID_TYPE_DCE_TIME +#define UUID_TYPE_RANDOM UUID_TYPE_DCE_RANDOM +#define UUID_TYPE_NULL -1 +#define UUID_TYPE_INVALID -42 + +#endif /* PHP_HAVE_UUID */ + +#endif /* PHP_UUID_H */ + + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + * vim600: noet sw=4 ts=4 fdm=marker + * vim<600: noet sw=4 ts=4 + */
View file
uuid-1.3.0.tgz/uuid-1.3.0/tests/uuid_compare.phpt
Changed
(renamed from uuid-1.2.0/tests/uuid_compare.phpt)
View file
uuid-1.3.0.tgz/uuid-1.3.0/tests/uuid_create.phpt
Changed
(renamed from uuid-1.2.0/tests/uuid_create.phpt)
View file
uuid-1.3.0.tgz/uuid-1.3.0/tests/uuid_create_time_v6.phpt
Added
@@ -0,0 +1,30 @@ +--TEST-- +uuid_create() function for UUID_TYPE_TIME_V6 +--SKIPIF-- +<?php + +if(!extension_loaded('uuid')) die('skip '); +if(!defined('UUID_TYPE_TIME_V6')) die('skip no UUID_TYPE_TIME_V6'); + + ?> +--FILE-- +<?php + // check basic format of generated UUIDs + $uuid = uuid_create(UUID_TYPE_TIME_V6); + if (preg_match("/:xdigit:{8}-:xdigit:{4}-:xdigit:{4}-:xdigit:{4}-:xdigit:{12}/", $uuid)) { + echo "basic format ok\n"; + } else { + echo "basic UUID format check failed, generated UUID was $uuid\n"; + } + $type = uuid_type($uuid); + if ($type === UUID_TYPE_TIME_V6) { + echo "type check ok\n"; + } else { + echo "UUID type check failed, found $uuid\n"; + } + +?> +--EXPECT-- +basic format ok +type check ok +
View file
uuid-1.3.0.tgz/uuid-1.3.0/tests/uuid_create_time_v7.phpt
Added
@@ -0,0 +1,30 @@ +--TEST-- +uuid_create() function for UUID_TYPE_TIME_V7 +--SKIPIF-- +<?php + +if(!extension_loaded('uuid')) die('skip '); +if(!defined('UUID_TYPE_TIME_V7')) die('skip no UUID_TYPE_TIME_V7'); + + ?> +--FILE-- +<?php + // check basic format of generated UUIDs + $uuid = uuid_create(UUID_TYPE_TIME_V7); + if (preg_match("/:xdigit:{8}-:xdigit:{4}-:xdigit:{4}-:xdigit:{4}-:xdigit:{12}/", $uuid)) { + echo "basic format ok\n"; + } else { + echo "basic UUID format check failed, generated UUID was $uuid\n"; + } + $type = uuid_type($uuid); + if ($type === UUID_TYPE_TIME_V7) { + echo "type check ok\n"; + } else { + echo "UUID type check failed, found $uuid\n"; + } + +?> +--EXPECT-- +basic format ok +type check ok +
View file
uuid-1.3.0.tgz/uuid-1.3.0/tests/uuid_generate_md5.phpt
Changed
(renamed from uuid-1.2.0/tests/uuid_generate_md5.phpt)
View file
uuid-1.3.0.tgz/uuid-1.3.0/tests/uuid_generate_sha1.phpt
Changed
(renamed from uuid-1.2.0/tests/uuid_generate_sha1.phpt)
View file
uuid-1.3.0.tgz/uuid-1.3.0/tests/uuid_is_null.phpt
Changed
(renamed from uuid-1.2.0/tests/uuid_is_null.phpt)
View file
uuid-1.3.0.tgz/uuid-1.3.0/tests/uuid_is_valid.phpt
Changed
(renamed from uuid-1.2.0/tests/uuid_is_valid.phpt)
View file
uuid-1.3.0.tgz/uuid-1.3.0/tests/uuid_mac.phpt
Added
@@ -0,0 +1,25 @@ +--TEST-- +uuid_mac() function +--SKIPIF-- +<?php + +if(!extension_loaded('uuid')) die('skip '); + + ?> +--FILE-- +<?php +var_dump(strtolower(uuid_mac("b691c99c-7fc5-11d8-9fa8-00065b896488"))); +try { + if (!uuid_mac("878b258c-a9f1-467c-8e1d")) { + echo "OK\n"; // PHP 7 + } +} catch (ValueError $e) { + echo $e->getMessage() . "\n"; // PHP 8 + echo "OK\n"; +} + +?> +--EXPECTF-- +string(12) "00065b896488" +%A Argument #1 ($uuid) UUID DCE TIME expected%A +OK
View file
uuid-1.3.0.tgz/uuid-1.3.0/tests/uuid_parse.phpt
Changed
(renamed from uuid-1.2.0/tests/uuid_parse.phpt)
View file
uuid-1.3.0.tgz/uuid-1.3.0/tests/uuid_time.phpt
Added
@@ -0,0 +1,25 @@ +--TEST-- +uuid_time() function +--SKIPIF-- +<?php + +if(!extension_loaded('uuid')) die('skip '); +if(!function_exists('uuid_time')) die('skip not compiled in (HAVE_UUID_TIME)'); + + ?> +--FILE-- +<?php +var_dump(uuid_time("b691c99c-7fc5-11d8-9fa8-00065b896488")); +try { + if (!uuid_time("878b258c-a9f1-467c-8e1d-47d79ca2c01b")) { + echo "OK\n"; // PHP 7 + } +} catch (ValueError $e) { + echo $e->getMessage() . "\n"; // PHP 8 + echo "OK\n"; +} + +?> +--EXPECTF-- +int(1080374815) +%A UUID DCE TIME expecte%AOK
View file
uuid-1.3.0.tgz/uuid-1.3.0/tests/uuid_type.phpt
Changed
(renamed from uuid-1.2.0/tests/uuid_type.phpt)
View file
uuid-1.3.0.tgz/uuid-1.3.0/tests/uuid_unparse.phpt
Changed
(renamed from uuid-1.2.0/tests/uuid_unparse.phpt)
View file
uuid-1.3.0.tgz/uuid-1.3.0/tests/uuid_variant.phpt
Changed
(renamed from uuid-1.2.0/tests/uuid_variant.phpt)
View file
uuid-1.3.0.tgz/uuid-1.3.0/uuid.c
Added
@@ -0,0 +1,466 @@ +/* + +----------------------------------------------------------------------+ + | This library is free software; you can redistribute it and/or | + | modify it under the terms of the GNU Lesser General Public | + | License as published by the Free Software Foundation; either | + | version 2.1 of the License, or (at your option) any later version. | + | | + | This library is distributed in the hope that it will be useful, | + | but WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | + | Lesser General Public License for more details. | + | | + | You should have received a copy of the GNU Lesser General Public | + | License in the file LICENSE along with this library; | + | if not, write to the | + | | + | Free Software Foundation, Inc., | + | 59 Temple Place, Suite 330, | + | Boston, MA 02111-1307 USA | + +----------------------------------------------------------------------+ + | Authors: Hartmut Holzgraefe <hartmut@php.net> | + | Remi Collet <remi@php.net> | + +----------------------------------------------------------------------+ +*/ + +#include "php_uuid.h" + +#ifdef HAVE_UUID + +#if defined(uuid_time) +/* workround with define uuid_time uuid_time64 */ +/* Also see https://bugzilla.redhat.com/2315645 */ +#undef uuid_time +#if !defined(HAVE_UUID_TIME64) +extern time_t uuid_time(const uuid_t uu, struct timeval *ret_tv); +#endif +#endif + +#if PHP_VERSION_ID < 80000 +#define VALUE_ERROR(n,name,msg) php_error_docref(NULL, E_WARNING, "Argument #%d (%s) %s", n, name, msg); RETURN_FALSE +#define RETURN_THROWS() return + +#include "uuid_legacy_arginfo.h" +#else +#define VALUE_ERROR(n,name,msg) zend_argument_value_error(n, msg); RETURN_THROWS() + +#include "uuid_arginfo.h" +#endif + + +/* {{{ uuid_module_entry + */ +zend_module_entry uuid_module_entry = { + STANDARD_MODULE_HEADER, + "uuid", + ext_functions, + PHP_MINIT(uuid), /* Replace with NULL if there is nothing to do at php startup */ + NULL, /* Replace with NULL if there is nothing to do at php shutdown */ + NULL, /* Replace with NULL if there is nothing to do at request start */ + NULL, /* Replace with NULL if there is nothing to do at request end */ + PHP_MINFO(uuid), + PHP_UUID_VERSION, + STANDARD_MODULE_PROPERTIES +}; +/* }}} */ + +#ifdef COMPILE_DL_UUID +ZEND_GET_MODULE(uuid) +#endif + + +/* {{{ PHP_MINIT_FUNCTION */ +PHP_MINIT_FUNCTION(uuid) +{ + + register_uuid_symbols(module_number); + + return SUCCESS; +} +/* }}} */ + + +/* {{{ PHP_MINFO_FUNCTION */ +PHP_MINFO_FUNCTION(uuid) +{ + php_info_print_table_start(); + php_info_print_table_header(2, "UUID extension", "enabled"); + php_info_print_table_row(2, "Version", PHP_UUID_VERSION " (" PHP_UUID_STATE ")"); + php_info_print_table_row(2, "Released", PHP_UUID_RELEASED); + php_info_print_table_row(2, "Authors", PHP_UUID_AUTHORS); + php_info_print_table_end(); + /* add your stuff here */ + +} +/* }}} */ + + +/* {{{ proto string uuid_create(int uuid_type) + Generate a new UUID */ +PHP_FUNCTION(uuid_create) +{ + + zend_long uuid_type = UUID_TYPE_DEFAULT; + uuid_t uuid; + char uuid_str37; + + + + if (zend_parse_parameters(ZEND_NUM_ARGS(), "|l", &uuid_type) == FAILURE) { + RETURN_THROWS(); + } + + switch(uuid_type) { + case UUID_TYPE_DCE_TIME: + uuid_generate_time(uuid); + break; +#ifdef UUID_TYPE_DCE_TIME_V6 + case UUID_TYPE_DCE_TIME_V6: + uuid_generate_time_v6(uuid); + break; +#endif +#ifdef UUID_TYPE_DCE_TIME_V7 + case UUID_TYPE_DCE_TIME_V7: + uuid_generate_time_v7(uuid); + break; +#endif + case UUID_TYPE_DCE_RANDOM: + uuid_generate_random(uuid); + break; + case UUID_TYPE_DEFAULT: + uuid_generate(uuid); + break; + default: +#if PHP_VERSION_ID < 80000 + php_error_docref(NULL, + E_WARNING, + "Unknown/invalid UUID type '%ld' requested, using default type instead", + uuid_type); + uuid_generate(uuid); +#else + zend_argument_value_error(1, "Unknown/invalid UUID type '" ZEND_LONG_FMT "'", uuid_type); + RETURN_THROWS(); +#endif + break; + } + + uuid_unparse(uuid, uuid_str); + + RETURN_STRING(uuid_str); +} +/* }}} uuid_create */ + + +/* {{{ proto bool uuid_is_valid(string uuid) + Check whether a given UUID string is a valid UUID */ +PHP_FUNCTION(uuid_is_valid) +{ + + const char * uuid = NULL; + size_t uuid_len = 0; + uuid_t u; + + + + if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &uuid, &uuid_len) == FAILURE) { + RETURN_THROWS(); + } + + RETURN_BOOL(0 == uuid_parse(uuid, u)); +} +/* }}} uuid_is_valid */ + + +/* {{{ proto int uuid_compare(string uuid1, string uuid2) + Compare two UUIDs */ +PHP_FUNCTION(uuid_compare) +{ + + const char * uuid1 = NULL; + size_t uuid1_len = 0; + const char * uuid2 = NULL; + size_t uuid2_len = 0; + uuid_t u1, u2; + + + + if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss", &uuid1, &uuid1_len, &uuid2, &uuid2_len) == FAILURE) { + RETURN_THROWS(); + } + if (uuid_parse(uuid1, u1)) { + VALUE_ERROR(1, "$uuid1", "UUID expected"); + } + if (uuid_parse(uuid2, u2)) { + VALUE_ERROR(2, "$uuid2", "UUID expected"); + } + + RETURN_LONG(uuid_compare(u1, u2)); +} +/* }}} uuid_compare */
View file
uuid-1.3.0.tgz/uuid-1.3.0/uuid.stub.php
Added
@@ -0,0 +1,169 @@ +<?php + +/** + * @generate-function-entries + * @generate-class-entries + * @generate-legacy-arginfo + */ + +#ifdef UUID_VARIANT_NCS +/** + * @var int + * @cvalue UUID_VARIANT_NCS + */ +const UUID_VARIANT_NCS = UNKNOWN; +#endif + +#ifdef UUID_VARIANT_DCE +/** + * @var int + * @cvalue UUID_VARIANT_DCE + */ +const UUID_VARIANT_DCE = UNKNOWN; +#endif + +#ifdef UUID_VARIANT_MICROSOFT +/** + * @var int + * @cvalue UUID_VARIANT_MICROSOFT + */ +const UUID_VARIANT_MICROSOFT = UNKNOWN; +#endif + +#ifdef UUID_VARIANT_OTHER +/** + * @var int + * @cvalue UUID_VARIANT_OTHER + */ +const UUID_VARIANT_OTHER = UNKNOWN; +#endif + +/** + * @var int + */ +const UUID_TYPE_DEFAULT = 0; + +/* ---------- deprecated alias ---------- */ + +/** + * @var int + * @cvalue UUID_TYPE_DCE + * @deprecated + */ +const UUID_TYPE_DCE = UNKNOWN; + +/** + * @var int + * @cvalue UUID_TYPE_NAME + * @deprecated + */ +const UUID_TYPE_NAME = UNKNOWN; + +/* ---------- library types ---------- */ + +/** + * @var int + * @cvalue UUID_TYPE_TIME + */ +const UUID_TYPE_TIME = UNKNOWN; + +#ifdef UUID_TYPE_DCE_TIME_V6 +/** + * @var int + * @cvalue UUID_TYPE_DCE_TIME_V6 + */ +const UUID_TYPE_TIME_V6 = UNKNOWN; +#endif + +#ifdef UUID_TYPE_DCE_TIME_V7 +/** + * @var int + * @cvalue UUID_TYPE_DCE_TIME_V7 + */ +const UUID_TYPE_TIME_V7 = UNKNOWN; +#endif + +#ifdef UUID_TYPE_DCE_VENDOR +/** + * @var int + * @cvalue UUID_TYPE_DCE_VENDOR + */ +const UUID_TYPE_VENDOR = UNKNOWN; +#endif + +#ifdef UUID_TYPE_DCE_SECURITY +/** + * @var int + * @cvalue UUID_TYPE_DCE_SECURITY + */ +const UUID_TYPE_SECURITY = UNKNOWN; +#endif + +#ifdef UUID_TYPE_DCE_MD5 +/** + * @var int + * @cvalue UUID_TYPE_DCE_MD5 + */ +const UUID_TYPE_MD5 = UNKNOWN; +#endif + +/** + * @var int + * @cvalue UUID_TYPE_DCE_RANDOM + */ +const UUID_TYPE_RANDOM = UNKNOWN; + +#ifdef UUID_TYPE_DCE_SHA1 +/** + * @var int + * @cvalue UUID_TYPE_DCE_SHA1 + */ +const UUID_TYPE_SHA1 = UNKNOWN; +#endif + +/* ---------- extension specific types ---------- */ + +/** + * @var int + */ +const UUID_TYPE_NULL = -1; + +/** + * @var int + */ +const UUID_TYPE_INVALID = -42; + +function uuid_create(int $uuid_type=UUID_TYPE_DEFAULT): string {} + +function uuid_is_valid(string $uuid): bool {} + +function uuid_compare(string $uuid1, string $uuid2): int {} + +function uuid_is_null(string $uuid): bool {} + +#ifdef HAVE_UUID_GENERATE_MD5 +function uuid_generate_md5(string $uuid_ns, string $name): string {} +#endif + +#ifdef HAVE_UUID_GENERATE_SHA1 +function uuid_generate_sha1(string $uuid_ns, string $name): string {} +#endif + +#ifdef HAVE_UUID_TYPE +function uuid_type(string $uuid): int {} +#endif + +#ifdef HAVE_UUID_VARIANT +function uuid_variant(string $uuid): int {} +#endif + +#if defined(HAVE_UUID_TIME) || defined(HAVE_UUID_TIME64) +function uuid_time(string $uuid): int {} +#endif + +function uuid_mac(string $uuid): string {} + +function uuid_parse(string $uuid): string {} + +function uuid_unparse(string $uuid): string {} +
View file
uuid-1.3.0.tgz/uuid-1.3.0/uuid_arginfo.h
Added
@@ -0,0 +1,149 @@ +/* This is a generated file, edit the .stub.php file instead. + * Stub hash: 28e3d8edf46fe2f5d0e87e159d36b508f16efccf */ + +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_uuid_create, 0, 0, IS_STRING, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, uuid_type, IS_LONG, 0, "UUID_TYPE_DEFAULT") +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_uuid_is_valid, 0, 1, _IS_BOOL, 0) + ZEND_ARG_TYPE_INFO(0, uuid, IS_STRING, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_uuid_compare, 0, 2, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, uuid1, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, uuid2, IS_STRING, 0) +ZEND_END_ARG_INFO() + +#define arginfo_uuid_is_null arginfo_uuid_is_valid + +#if defined(HAVE_UUID_GENERATE_MD5) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_uuid_generate_md5, 0, 2, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, uuid_ns, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +ZEND_END_ARG_INFO() +#endif + +#if defined(HAVE_UUID_GENERATE_SHA1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_uuid_generate_sha1, 0, 2, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, uuid_ns, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +ZEND_END_ARG_INFO() +#endif + +#if defined(HAVE_UUID_TYPE) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_uuid_type, 0, 1, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, uuid, IS_STRING, 0) +ZEND_END_ARG_INFO() +#endif + +#if defined(HAVE_UUID_VARIANT) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_uuid_variant, 0, 1, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, uuid, IS_STRING, 0) +ZEND_END_ARG_INFO() +#endif + +#if defined(HAVE_UUID_TIME) || defined(HAVE_UUID_TIME64) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_uuid_time, 0, 1, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, uuid, IS_STRING, 0) +ZEND_END_ARG_INFO() +#endif + +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_uuid_mac, 0, 1, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, uuid, IS_STRING, 0) +ZEND_END_ARG_INFO() + +#define arginfo_uuid_parse arginfo_uuid_mac + +#define arginfo_uuid_unparse arginfo_uuid_mac + + +ZEND_FUNCTION(uuid_create); +ZEND_FUNCTION(uuid_is_valid); +ZEND_FUNCTION(uuid_compare); +ZEND_FUNCTION(uuid_is_null); +#if defined(HAVE_UUID_GENERATE_MD5) +ZEND_FUNCTION(uuid_generate_md5); +#endif +#if defined(HAVE_UUID_GENERATE_SHA1) +ZEND_FUNCTION(uuid_generate_sha1); +#endif +#if defined(HAVE_UUID_TYPE) +ZEND_FUNCTION(uuid_type); +#endif +#if defined(HAVE_UUID_VARIANT) +ZEND_FUNCTION(uuid_variant); +#endif +#if defined(HAVE_UUID_TIME) || defined(HAVE_UUID_TIME64) +ZEND_FUNCTION(uuid_time); +#endif +ZEND_FUNCTION(uuid_mac); +ZEND_FUNCTION(uuid_parse); +ZEND_FUNCTION(uuid_unparse); + + +static const zend_function_entry ext_functions = { + ZEND_FE(uuid_create, arginfo_uuid_create) + ZEND_FE(uuid_is_valid, arginfo_uuid_is_valid) + ZEND_FE(uuid_compare, arginfo_uuid_compare) + ZEND_FE(uuid_is_null, arginfo_uuid_is_null) +#if defined(HAVE_UUID_GENERATE_MD5) + ZEND_FE(uuid_generate_md5, arginfo_uuid_generate_md5) +#endif +#if defined(HAVE_UUID_GENERATE_SHA1) + ZEND_FE(uuid_generate_sha1, arginfo_uuid_generate_sha1) +#endif +#if defined(HAVE_UUID_TYPE) + ZEND_FE(uuid_type, arginfo_uuid_type) +#endif +#if defined(HAVE_UUID_VARIANT) + ZEND_FE(uuid_variant, arginfo_uuid_variant) +#endif +#if defined(HAVE_UUID_TIME) || defined(HAVE_UUID_TIME64) + ZEND_FE(uuid_time, arginfo_uuid_time) +#endif + ZEND_FE(uuid_mac, arginfo_uuid_mac) + ZEND_FE(uuid_parse, arginfo_uuid_parse) + ZEND_FE(uuid_unparse, arginfo_uuid_unparse) + ZEND_FE_END +}; + +static void register_uuid_symbols(int module_number) +{ +#if defined(UUID_VARIANT_NCS) + REGISTER_LONG_CONSTANT("UUID_VARIANT_NCS", UUID_VARIANT_NCS, CONST_PERSISTENT | CONST_CS); +#endif +#if defined(UUID_VARIANT_DCE) + REGISTER_LONG_CONSTANT("UUID_VARIANT_DCE", UUID_VARIANT_DCE, CONST_PERSISTENT | CONST_CS); +#endif +#if defined(UUID_VARIANT_MICROSOFT) + REGISTER_LONG_CONSTANT("UUID_VARIANT_MICROSOFT", UUID_VARIANT_MICROSOFT, CONST_PERSISTENT | CONST_CS); +#endif +#if defined(UUID_VARIANT_OTHER) + REGISTER_LONG_CONSTANT("UUID_VARIANT_OTHER", UUID_VARIANT_OTHER, CONST_PERSISTENT | CONST_CS); +#endif + REGISTER_LONG_CONSTANT("UUID_TYPE_DEFAULT", 0, CONST_PERSISTENT | CONST_CS); + REGISTER_LONG_CONSTANT("UUID_TYPE_DCE", UUID_TYPE_DCE, CONST_PERSISTENT | CONST_CS | CONST_DEPRECATED); + REGISTER_LONG_CONSTANT("UUID_TYPE_NAME", UUID_TYPE_NAME, CONST_PERSISTENT | CONST_CS | CONST_DEPRECATED); + REGISTER_LONG_CONSTANT("UUID_TYPE_TIME", UUID_TYPE_TIME, CONST_PERSISTENT | CONST_CS); +#if defined(UUID_TYPE_DCE_TIME_V6) + REGISTER_LONG_CONSTANT("UUID_TYPE_TIME_V6", UUID_TYPE_DCE_TIME_V6, CONST_PERSISTENT | CONST_CS); +#endif +#if defined(UUID_TYPE_DCE_TIME_V7) + REGISTER_LONG_CONSTANT("UUID_TYPE_TIME_V7", UUID_TYPE_DCE_TIME_V7, CONST_PERSISTENT | CONST_CS); +#endif +#if defined(UUID_TYPE_DCE_VENDOR) + REGISTER_LONG_CONSTANT("UUID_TYPE_VENDOR", UUID_TYPE_DCE_VENDOR, CONST_PERSISTENT | CONST_CS); +#endif +#if defined(UUID_TYPE_DCE_SECURITY) + REGISTER_LONG_CONSTANT("UUID_TYPE_SECURITY", UUID_TYPE_DCE_SECURITY, CONST_PERSISTENT | CONST_CS); +#endif +#if defined(UUID_TYPE_DCE_MD5) + REGISTER_LONG_CONSTANT("UUID_TYPE_MD5", UUID_TYPE_DCE_MD5, CONST_PERSISTENT | CONST_CS); +#endif + REGISTER_LONG_CONSTANT("UUID_TYPE_RANDOM", UUID_TYPE_DCE_RANDOM, CONST_PERSISTENT | CONST_CS); +#if defined(UUID_TYPE_DCE_SHA1) + REGISTER_LONG_CONSTANT("UUID_TYPE_SHA1", UUID_TYPE_DCE_SHA1, CONST_PERSISTENT | CONST_CS); +#endif + REGISTER_LONG_CONSTANT("UUID_TYPE_NULL", -1, CONST_PERSISTENT | CONST_CS); + REGISTER_LONG_CONSTANT("UUID_TYPE_INVALID", -42, CONST_PERSISTENT | CONST_CS); +}
View file
uuid-1.3.0.tgz/uuid-1.3.0/uuid_legacy_arginfo.h
Added
@@ -0,0 +1,147 @@ +/* This is a generated file, edit the .stub.php file instead. + * Stub hash: 28e3d8edf46fe2f5d0e87e159d36b508f16efccf */ + +ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_create, 0, 0, 0) + ZEND_ARG_INFO(0, uuid_type) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_is_valid, 0, 0, 1) + ZEND_ARG_INFO(0, uuid) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_compare, 0, 0, 2) + ZEND_ARG_INFO(0, uuid1) + ZEND_ARG_INFO(0, uuid2) +ZEND_END_ARG_INFO() + +#define arginfo_uuid_is_null arginfo_uuid_is_valid + +#if defined(HAVE_UUID_GENERATE_MD5) +ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_generate_md5, 0, 0, 2) + ZEND_ARG_INFO(0, uuid_ns) + ZEND_ARG_INFO(0, name) +ZEND_END_ARG_INFO() +#endif + +#if defined(HAVE_UUID_GENERATE_SHA1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_generate_sha1, 0, 0, 2) + ZEND_ARG_INFO(0, uuid_ns) + ZEND_ARG_INFO(0, name) +ZEND_END_ARG_INFO() +#endif + +#if defined(HAVE_UUID_TYPE) +ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_type, 0, 0, 1) + ZEND_ARG_INFO(0, uuid) +ZEND_END_ARG_INFO() +#endif + +#if defined(HAVE_UUID_VARIANT) +ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_variant, 0, 0, 1) + ZEND_ARG_INFO(0, uuid) +ZEND_END_ARG_INFO() +#endif + +#if defined(HAVE_UUID_TIME) || defined(HAVE_UUID_TIME64) +ZEND_BEGIN_ARG_INFO_EX(arginfo_uuid_time, 0, 0, 1) + ZEND_ARG_INFO(0, uuid) +ZEND_END_ARG_INFO() +#endif + +#define arginfo_uuid_mac arginfo_uuid_is_valid + +#define arginfo_uuid_parse arginfo_uuid_is_valid + +#define arginfo_uuid_unparse arginfo_uuid_is_valid + + +ZEND_FUNCTION(uuid_create); +ZEND_FUNCTION(uuid_is_valid); +ZEND_FUNCTION(uuid_compare); +ZEND_FUNCTION(uuid_is_null); +#if defined(HAVE_UUID_GENERATE_MD5) +ZEND_FUNCTION(uuid_generate_md5); +#endif +#if defined(HAVE_UUID_GENERATE_SHA1) +ZEND_FUNCTION(uuid_generate_sha1); +#endif +#if defined(HAVE_UUID_TYPE) +ZEND_FUNCTION(uuid_type); +#endif +#if defined(HAVE_UUID_VARIANT) +ZEND_FUNCTION(uuid_variant); +#endif +#if defined(HAVE_UUID_TIME) || defined(HAVE_UUID_TIME64) +ZEND_FUNCTION(uuid_time); +#endif +ZEND_FUNCTION(uuid_mac); +ZEND_FUNCTION(uuid_parse); +ZEND_FUNCTION(uuid_unparse); + + +static const zend_function_entry ext_functions = { + ZEND_FE(uuid_create, arginfo_uuid_create) + ZEND_FE(uuid_is_valid, arginfo_uuid_is_valid) + ZEND_FE(uuid_compare, arginfo_uuid_compare) + ZEND_FE(uuid_is_null, arginfo_uuid_is_null) +#if defined(HAVE_UUID_GENERATE_MD5) + ZEND_FE(uuid_generate_md5, arginfo_uuid_generate_md5) +#endif +#if defined(HAVE_UUID_GENERATE_SHA1) + ZEND_FE(uuid_generate_sha1, arginfo_uuid_generate_sha1) +#endif +#if defined(HAVE_UUID_TYPE) + ZEND_FE(uuid_type, arginfo_uuid_type) +#endif +#if defined(HAVE_UUID_VARIANT) + ZEND_FE(uuid_variant, arginfo_uuid_variant) +#endif +#if defined(HAVE_UUID_TIME) || defined(HAVE_UUID_TIME64) + ZEND_FE(uuid_time, arginfo_uuid_time) +#endif + ZEND_FE(uuid_mac, arginfo_uuid_mac) + ZEND_FE(uuid_parse, arginfo_uuid_parse) + ZEND_FE(uuid_unparse, arginfo_uuid_unparse) + ZEND_FE_END +}; + +static void register_uuid_symbols(int module_number) +{ +#if defined(UUID_VARIANT_NCS) + REGISTER_LONG_CONSTANT("UUID_VARIANT_NCS", UUID_VARIANT_NCS, CONST_PERSISTENT | CONST_CS); +#endif +#if defined(UUID_VARIANT_DCE) + REGISTER_LONG_CONSTANT("UUID_VARIANT_DCE", UUID_VARIANT_DCE, CONST_PERSISTENT | CONST_CS); +#endif +#if defined(UUID_VARIANT_MICROSOFT) + REGISTER_LONG_CONSTANT("UUID_VARIANT_MICROSOFT", UUID_VARIANT_MICROSOFT, CONST_PERSISTENT | CONST_CS); +#endif +#if defined(UUID_VARIANT_OTHER) + REGISTER_LONG_CONSTANT("UUID_VARIANT_OTHER", UUID_VARIANT_OTHER, CONST_PERSISTENT | CONST_CS); +#endif + REGISTER_LONG_CONSTANT("UUID_TYPE_DEFAULT", 0, CONST_PERSISTENT | CONST_CS); + REGISTER_LONG_CONSTANT("UUID_TYPE_DCE", UUID_TYPE_DCE, CONST_PERSISTENT | CONST_CS); + REGISTER_LONG_CONSTANT("UUID_TYPE_NAME", UUID_TYPE_NAME, CONST_PERSISTENT | CONST_CS); + REGISTER_LONG_CONSTANT("UUID_TYPE_TIME", UUID_TYPE_TIME, CONST_PERSISTENT | CONST_CS); +#if defined(UUID_TYPE_DCE_TIME_V6) + REGISTER_LONG_CONSTANT("UUID_TYPE_TIME_V6", UUID_TYPE_DCE_TIME_V6, CONST_PERSISTENT | CONST_CS); +#endif +#if defined(UUID_TYPE_DCE_TIME_V7) + REGISTER_LONG_CONSTANT("UUID_TYPE_TIME_V7", UUID_TYPE_DCE_TIME_V7, CONST_PERSISTENT | CONST_CS); +#endif +#if defined(UUID_TYPE_DCE_VENDOR) + REGISTER_LONG_CONSTANT("UUID_TYPE_VENDOR", UUID_TYPE_DCE_VENDOR, CONST_PERSISTENT | CONST_CS); +#endif +#if defined(UUID_TYPE_DCE_SECURITY) + REGISTER_LONG_CONSTANT("UUID_TYPE_SECURITY", UUID_TYPE_DCE_SECURITY, CONST_PERSISTENT | CONST_CS); +#endif +#if defined(UUID_TYPE_DCE_MD5) + REGISTER_LONG_CONSTANT("UUID_TYPE_MD5", UUID_TYPE_DCE_MD5, CONST_PERSISTENT | CONST_CS); +#endif + REGISTER_LONG_CONSTANT("UUID_TYPE_RANDOM", UUID_TYPE_DCE_RANDOM, CONST_PERSISTENT | CONST_CS); +#if defined(UUID_TYPE_DCE_SHA1) + REGISTER_LONG_CONSTANT("UUID_TYPE_SHA1", UUID_TYPE_DCE_SHA1, CONST_PERSISTENT | CONST_CS); +#endif + REGISTER_LONG_CONSTANT("UUID_TYPE_NULL", -1, CONST_PERSISTENT | CONST_CS); + REGISTER_LONG_CONSTANT("UUID_TYPE_INVALID", -42, CONST_PERSISTENT | CONST_CS); +}
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.