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
// Get own internal address and set it in config
$cfg->setConfigEntry('internal_address', HubTools::determineOwnInternalAddress());
-// By default scrypt is assumed absent and later tested being there
-$cfg->setConfigEntry('extension_scrypt_loaded', FALSE);
-
// [EOF]
?>
#!/bin/sh
echo "$0: Searching for PHP scripts (except 3rd party) ..."
-PHP=`find -type f -name "*.php" | grep -v "third_party"`
+PHP=`find -type f -name "*.php" 2>&1 | grep -v "third_party"`
for SCRIPT in ${PHP};
do
echo "$0: Script '${SCRIPT}' has non-typical footer."
fi
- LINT=`php -l "${SCRIPT}" 2>&1 | grep -v "No syntax errors detected in"`
+ LINT=`php -l "${SCRIPT}" 2>&1 | grep -v "Constant FUSE_EDEADLK already defined in Unknown on line 0" | grep -v "No syntax errors detected in"`
if [ -n "${LINT}" ]
then
-Subproject commit e3c9a9ab3fc3f5d6a11b5af02d89cdba472d7ab8
+Subproject commit df42c6e506561f872ee628448945833cad968d28