*/
protected function attachCryptoStream () {
// Do we have mcrypt loaded?
- if ($this->isPhpModuleLoaded('mcrypt')) {
+ if ($this->isPhpExtensionLoaded('mcrypt')) {
// Then use it
- $this->cryptoStreamInstance = ObjectFactory::createObjectByName('McryptStream', array($this->rngInstance()))
+ $this->cryptoStreamInstance = ObjectFactory::createObjectByName('McryptStream', array($this->rngInstance()));
} else {
// If nothing works ...
$this->cryptoStreamInstance = ObjectFactory::createObjectByName('NullCryptoStream');