Skip to content

Commit

Permalink
Allow custom port, backports joomla/joomla-cms@5f927dc
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabker committed Aug 4, 2016
1 parent 4c5e8fb commit 3cb4670
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mysqli/MysqliDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ public function __construct($options)
$options['password'] = (isset($options['password'])) ? $options['password'] : '';
$options['database'] = (isset($options['database'])) ? $options['database'] : '';
$options['select'] = (isset($options['select'])) ? (bool) $options['select'] : true;
$options['port'] = null;
$options['socket'] = null;
$options['port'] = (isset($options['port'])) ? (int) $options['port'] : null;
$options['socket'] = (isset($options['socket'])) ? $options['socket'] : null;
$options['utf8mb4'] = (isset($options['utf8mb4'])) ? (bool) $options['utf8mb4'] : false;

// Finalize initialisation.
Expand Down

0 comments on commit 3cb4670

Please sign in to comment.