diff options
author | Remi Collet <fedora@famillecollet.com> | 2012-11-07 07:44:15 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2012-11-07 07:44:15 +0100 |
commit | cd32c84b6a7f80929e80c03512b92775507523ac (patch) | |
tree | d21f350389cb98f3948db5eb60fca6cc1562685c /php-horde-Horde-Support-uuid.patch | |
parent | 4aad3afb361ca23d7411d85972f56d91047e932e (diff) |
php-horde-Horde-Support: 2.0.1
Diffstat (limited to 'php-horde-Horde-Support-uuid.patch')
-rw-r--r-- | php-horde-Horde-Support-uuid.patch | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/php-horde-Horde-Support-uuid.patch b/php-horde-Horde-Support-uuid.patch deleted file mode 100644 index 09974d7..0000000 --- a/php-horde-Horde-Support-uuid.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff -up Horde_Support-2.0.0/lib/Horde/Support/Uuid.php.old Horde_Support-2.0.0/lib/Horde/Support/Uuid.php ---- Horde_Support-2.0.0/lib/Horde/Support/Uuid.php.old 2012-11-06 17:23:48.000000000 +0100 -+++ Horde_Support-2.0.0/lib/Horde/Support/Uuid.php 2012-11-06 17:36:23.000000000 +0100 -@@ -36,9 +36,20 @@ class Horde_Support_Uuid - */ - public function generate() - { -+ $this->_uuid = NULL; - if (extension_loaded('uuid')) { -- $this->_uuid = uuid_create(); -- } else { -+ if (function_exists("uuid_export")) { -+ // UUID extension from http://www.ossp.org/pkg/lib/uuid/ -+ if (uuid_create($ctx)==UUID_RC_OK && uuid_make($ctx, UUID_MAKE_V4)==UUID_RC_OK && uuid_export($ctx, UUID_FMT_STR, $str)==UUID_RC_OK) { -+ $this->_uuid = $str; -+ uuid_destroy($ctx); -+ } -+ } else { -+ // UUID extension from http://pecl.php.net/package/uuid -+ $this->_uuid = uuid_create(); -+ } -+ } -+ if (!$this->_uuid) { - list($time_mid, $time_low) = explode(' ', microtime()); - $time_low = (int)$time_low; - $time_mid = (int)substr($time_mid, 2) & 0xffff; |