]> git.mxchange.org Git - hub.git/blobdiff - application/hub/classes/filter/node/class_NodePhpRequirementsFilter.php
Continued a bit:
[hub.git] / application / hub / classes / filter / node / class_NodePhpRequirementsFilter.php
index 7cba2b5ca371859eaff41ae81f319f4712d60b8e..cb8a15785672bf21ada3e9168028c4e1e393cb02 100644 (file)
@@ -76,6 +76,16 @@ class NodePhpRequirementsFilter extends BaseNodeFilter implements Filterable {
                        self::createDebugInstance(__CLASS__)->debugOutput('FILTER[' . __METHOD__ . ':' . __LINE__ . '] ext-scrypt not found or scrypt() function not found. "Hubcoin reward" feature disabled.');
                }
 
+               // If uuid_create() is not found (ext-uuid) then some keys are a bit weaker
+               if ((extension_loaded('uuid')) && (is_callable('uuid_create'))) {
+                       // Mark it as working
+                       self::createDebugInstance(__CLASS__)->debugOutput('FILTER[' . __METHOD__ . ':' . __LINE__ . '] ext-uuid and a callable uuid_create() function found. UUID "entropy" available.');
+                       $this->getConfigInstance()->setConfigEntry('extension_uuid_loaded', TRUE);
+               } else {
+                       // Not working (not all have ext-uuid installed
+                       self::createDebugInstance(__CLASS__)->debugOutput('FILTER[' . __METHOD__ . ':' . __LINE__ . '] ext-uuid not found or uuid_create() function not found. "Hubcoin reward" feature disabled.');
+               }
+
                // Are all tests passed?
                if ($checkPassed === FALSE) {
                        // Throw an exception