diff options
author | Hugues Peccatte <hugues.peccatte@gmail.com> | 2014-10-30 19:40:09 +0300 |
---|---|---|
committer | Hugues Peccatte <hugues.peccatte@gmail.com> | 2014-10-30 19:40:09 +0300 |
commit | e17de11c7438aef5e9f0773fcebda186e5648846 (patch) | |
tree | 5beebecb25ec01824060014db5103d71404bf95f /tbl_create.php | |
parent | 5007cdbf5eb259f5988b57d45ae5b980495213b8 (diff) | |
parent | 3b3017d7aec9bc07a279b80ac39108d731575f46 (diff) |
Improve multibytes string manipulation performances.
Review SQL import process.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Diffstat (limited to 'tbl_create.php')
-rw-r--r-- | tbl_create.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tbl_create.php b/tbl_create.php index 799a063c21..ebbef95151 100644 --- a/tbl_create.php +++ b/tbl_create.php @@ -19,7 +19,7 @@ PMA_Util::checkParameters(array('db')); $pmaString = $GLOBALS['PMA_String']; /* Check if database name is empty */ -if ($pmaString->strlen($db) == 0) { +if (/*overload*/mb_strlen($db) == 0) { PMA_Util::mysqlDie( __('The database name is empty!'), '', false, 'index.php' ); @@ -76,7 +76,7 @@ if (isset($_REQUEST['do_save_data'])) { ) { foreach ($_REQUEST['field_mimetype'] as $fieldindex => $mimetype) { if (isset($_REQUEST['field_name'][$fieldindex]) - && $pmaString->strlen($_REQUEST['field_name'][$fieldindex]) + && /*overload*/mb_strlen($_REQUEST['field_name'][$fieldindex]) ) { PMA_setMIME( $db, $table, |