);
} else {
// Construct the message
- $message = sprintf("[%s:] Invalid socket, type=%s, errno=%s, errstr=%s",
+ $message = sprintf("[%s:] Invalid socket, type=%s(%s), errno=%s, errstr=%s",
$messageData[0]->__toString(),
$messageData[1],
+ gettype($messageData[1]),
$messageData[2],
$messageData[3]
);
// Construct the message
$message = sprintf("[%s:] Socket %s has no error reported.",
$messageData[0]->__toString(),
- $messageData[1],
+ $messageData[1]
);
// Call parent exception constructor
// Add the type
$argsString .= $this->replaceControlCharacters($arg) . ' (' . gettype($arg);
- // Add length if type is string
if (is_string($arg)) {
+ // Add length for strings
$argsString .= ', '.strlen($arg);
- } // END - if
+ } elseif (is_array($arg)) {
+ // .. or size if array
+ $argsString .= ', '.count($arg);
+ } elseif ($arg === true) {
+ // ... is boolean 'true'
+ $argsString .= ', true';
+ } elseif ($arg === false) {
+ // ... is boolean 'true'
+ $argsString .= ', false';
+ }
// Closing bracket
$argsString .= '), ';
// Get last executed pre filter
$extraInstance = Registry::getRegistry()->getInstance('extra');
} catch (NullPointerException $e) {
- // Instance in registry is not set (null)
+ // Instance in registry is not set (NULL)
// @TODO We need to log this later
}
public function closeDirectory () {
// Close the directory pointer and reset the instance variable
@closedir($this->getPointer());
- $this->setPointer(null);
+ $this->setPointer(NULL);
$this->setPathName('');
}
// Close the file pointer and reset the instance variable
@fclose($this->getPointer());
- $this->setPointer(null);
+ $this->setPointer(NULL);
$this->setFileName('');
}
// Close the file pointer and reset the instance variable
@fclose($this->getPointer());
- $this->setPointer(null);
+ $this->setPointer(NULL);
$this->setFileName('');
}
/**
* Checks wether the given stack is empty
*
- * @param $stackerName Name of the stack
+ * @param $stackerName Name of the stack
* @return $isEmpty Wether the stack is empty
* @throws NoStackerException If given stack is missing
*/
} // END - if
// So, is the stack empty?
- $isFull = (($this->getStackCount($stackerName)) == 0);
+ $isEmpty = (($this->getStackCount($stackerName)) == 0);
// Return result
- return $isFull;
+ return $isEmpty;
}
/**