Add Exception if MB support is not available in PHP

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3813 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2017-07-19 06:30:27 +00:00
parent 1ad689299b
commit bf31012a81
4 changed files with 27 additions and 0 deletions

View File

@@ -72,6 +72,9 @@ class dblayeroo
$driver_options=null)
/* {{{ */
{
if (! function_exists ("mb_strlen"))
throw new \Exception ("PHP don't have the MB Support. Please add it !",
500);
$driver = @explode (":", $dsn);
if (! isset ($driver[0]))
$this->DBException (dgettext ("domframework", "No valid DSN provided"));