From: Jan Schneider Date: Thu, 12 Aug 2010 08:26:43 +0000 (+0200) Subject: Use uuid extension if available. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=09b06503e6b5be1501d9761c10cf61f15812e55b;p=horde.git Use uuid extension if available. --- diff --git a/framework/Support/lib/Horde/Support/Uuid.php b/framework/Support/lib/Horde/Support/Uuid.php index 9fb0415a8..161b14c79 100644 --- a/framework/Support/lib/Horde/Support/Uuid.php +++ b/framework/Support/lib/Horde/Support/Uuid.php @@ -35,7 +35,11 @@ class Horde_Support_Uuid */ public function __construct() { - $this->generate(); + if (extension_loaded('uuid')) { + $this->_uuid = uuid_create(); + } else { + $this->generate(); + } } /**