X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fclasses%2Ffilter%2Fnode%2Fclass_NodePhpRequirementsFilter.php;h=cb8a15785672bf21ada3e9168028c4e1e393cb02;hb=03ffb1e1475f2fbc83fda609c7d5732cdff5735a;hp=7cba2b5ca371859eaff41ae81f319f4712d60b8e;hpb=7837ae87afe75f03e9dd9ba3a5030350cac726b1;p=hub.git diff --git a/application/hub/classes/filter/node/class_NodePhpRequirementsFilter.php b/application/hub/classes/filter/node/class_NodePhpRequirementsFilter.php index 7cba2b5ca..cb8a15785 100644 --- a/application/hub/classes/filter/node/class_NodePhpRequirementsFilter.php +++ b/application/hub/classes/filter/node/class_NodePhpRequirementsFilter.php @@ -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