Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Native string adapter don't need ext/mbstring

  • Loading branch information...
commit 906b5c3256677b678b3d8a1fe47cae17ebfe5d2e 1 parent 6c0f698
Marc Bennewitz authored
5 library/Zend/Stdlib/StringAdapter/Iconv.php
View
@@ -15,6 +15,11 @@ class Iconv extends AbstractStringAdapter
'UTF-8', // TODO
);
+ /**
+ * Constructor
+ *
+ * @throws Exception\ExtensionNotLoadedException
+ */
public function __construct()
{
if (!extension_loaded('iconv')) {
5 library/Zend/Stdlib/StringAdapter/MbString.php
View
@@ -17,6 +17,11 @@ class MbString extends AbstractStringAdapter
'UTF-8', // TODO
);
+ /**
+ * Constructor
+ *
+ * @throws Exception\ExtensionNotLoadedException
+ */
public function __construct()
{
if (!extension_loaded('mbstring')) {
9 library/Zend/Stdlib/StringAdapter/Native.php
View
@@ -20,15 +20,6 @@ class Native extends AbstractStringAdapter
'UCS-4', 'UCS-4BE', 'UCS-4LE',
);
- public function __construct()
- {
- if (!extension_loaded('mbstring')) {
- throw new Exception\ExtensionNotLoadedException(
- 'PHP extension "mbstring" is required for this adapter'
- );
- }
- }
-
public function isCharsetSupported($charset)
{
$charset = strtoupper($charset);
Please sign in to comment.
Something went wrong with that request. Please try again.