diff --git a/src/PHPSQLParser/Options.php b/src/PHPSQLParser/Options.php index de013fe9..7d98b758 100644 --- a/src/PHPSQLParser/Options.php +++ b/src/PHPSQLParser/Options.php @@ -47,7 +47,7 @@ class Options public function __construct(array $options) { $this->options = $options; - $this->mboverloaded = (bool)@ini_get('mbstring.func_overload'); + $this->mboverloaded = extension_loaded('mbstring') && @ini_get('mbstring.func_overload'); } /**