// Invalid exception instance detected! Do *only* throw exceptions that
// extends our own exception 'FrameworkException' to get such nice
// outputs like above.
- print("exceptionInstance is invalid! Please inform the core developer team.\n");
+ print('exceptionInstance[]=' . gettype($exceptionInstance) . ' is invalid! Please inform the core developer team.');
}
}
// Error handler
function __errorHandler ($errno, $errstr, $errfile, $errline, array $errcontext) {
// Construct the message
- $message = sprintf("File: %s, Line: %s, Code: %s, Message: %s",
+ $message = sprintf('File: %s, Line: %s, Code: %s, Message: %s',
basename($errfile),
$errline,
$errno,
} // END - if
// Create message
- $message = sprintf("File: %s, Line: %s, Code: %s",
+ $message = sprintf('File: %s, Line: %s, Code: %s',
basename($file),
$line,
$code
$this->getConfigInstance()->setConfigEntry($targetKey, $this->getConfigInstance()->getConfigEntry($sourceKey));
} // END - foreach
- // Debug message
- /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('REQUEST-HANDLER[' . __LINE__ . ']: Got a node list of ' . count($nodeList) . ' entry/-ies back.');
-
// Query local DHT for nodes except given session id
$nodeList = $this->getDhtInstance()->queryLocalNodeListExceptByMessageData(
$messageData,
BaseHubNode::OBJECT_LIST_SEPARATOR
);
+ // Debug message
+ /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('REQUEST-HANDLER[' . __LINE__ . ']: Got a node list of ' . count($nodeList) . ' entry/-ies back.');
+
// Set it serialized in configuration (temporarily)
$this->getConfigInstance()->setConfigEntry('node_list', base64_encode(serialize($nodeList)));