- ignored more bad lines (causes by php-fuse)
- added extension_foo_loaded (DONT TOUCH THIS)
- the script should check for existence (see 'hub' project) of an optional
PHP extension and then set the corresponding option to TRUE
- the above will later be made more generic
Signed-off-by: Roland Häder <roland@mxchange.org>
#!/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
// CFG: IPC-SOCKET-FILE-NAME
$cfg->setConfigEntry('ipc_socket_file_name', 'php_ipc_socket');
+// CFG: EXTENSION-SCRYPT-LOADED (By default scrypt is assumed absent and later tested being there)
+$cfg->setConfigEntry('extension_scrypt_loaded', FALSE);
+
+// CFG: EXTENSION-UUID-LOADED (By default uuid is assumed absent and later tested being there)
+$cfg->setConfigEntry('extension_uuid_loaded', FALSE);
+
// [EOF]
?>
// Init empty UUID
$uuid = '';
- // Is the UUID extension loaded? (see pecl)
- if ((extension_loaded('uuid')) && (function_exists('uuid_create'))) {
+ // Is the UUID extension loaded and enabled? (see pecl)
+ if ($this->getConfigInstance()->getConfigEntry('extension_uuid_loaded') === TRUE) {
// Then add it as well
$uuid = uuid_create();
} // END - if