aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-08-29 12:51:58 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-08-29 12:51:58 +0200
commitce9bac2aa71ed8df456a37fd4e0c4898a6a74d13 (patch)
tree6ccd0238fcd1d57249422860206d5c51ce04c53a
parent0d0a40841b5ab1c3bb74f6b0b9bfff94c4dcfab6 (diff)
downloadUstring-ce9bac2aa71ed8df456a37fd4e0c4898a6a74d13.zip
Ustring-ce9bac2aa71ed8df456a37fd4e0c4898a6a74d13.tar.gz
Ustring-ce9bac2aa71ed8df456a37fd4e0c4898a6a74d13.tar.bz2
Check mb_substr instead of mb_strlen.
-rw-r--r--String.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/String.php b/String.php
index bbe3a37..5f8e9d5 100644
--- a/String.php
+++ b/String.php
@@ -216,7 +216,7 @@ class String implements \ArrayAccess, \Countable, \IteratorAggregate {
*/
public function __construct ( $string = null ) {
- if(false === function_exists('mb_strlen'))
+ if(false === function_exists('mb_substr'))
throw new Exception(
'%s needs the mbstring extension.', 0, get_class($this));