You are here

public function Iconv::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-stdlib/src/StringWrapper/Iconv.php \Zend\Stdlib\StringWrapper\Iconv::__construct()

Constructor

Throws

Exception\ExtensionNotLoadedException

File

vendor/zendframework/zend-stdlib/src/StringWrapper/Iconv.php, line 215

Class

Iconv

Namespace

Zend\Stdlib\StringWrapper

Code

public function __construct() {
  if (!extension_loaded('iconv')) {
    throw new Exception\ExtensionNotLoadedException('PHP extension "iconv" is required for this wrapper');
  }
}