Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
9a936b16
Commit
9a936b16
authored
Oct 28, 2013
by
till
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update: incorporate CS fixes (h/t @stof)
parent
8010ed86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
MysqliConnection.php
lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
+4
-4
No files found.
lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
View file @
9a936b16
...
...
@@ -34,9 +34,9 @@ class MysqliConnection implements Connection
/**
* @var array
*/
private
$
_
driverOptions
;
private
$driverOptions
;
private
$
_
supportedDriverOptions
=
array
(
private
$supportedDriverOptions
=
array
(
\MYSQLI_OPT_CONNECT_TIMEOUT
,
\MYSQLI_OPT_LOCAL_INFILE
,
\MYSQLI_INIT_COMMAND
,
...
...
@@ -178,13 +178,13 @@ class MysqliConnection implements Connection
*/
public
function
setDriverOptions
(
array
$driverOptions
=
array
())
{
$this
->
_
driverOptions
=
$driverOptions
;
$this
->
driverOptions
=
$driverOptions
;
static
$exceptionMsg
=
"%s option '%s' with value '%s'"
;
foreach
(
$driverOptions
as
$option
=>
$value
)
{
if
(
!
in_array
(
$option
,
$this
->
_
supportedDriverOptions
))
{
if
(
!
in_array
(
$option
,
$this
->
supportedDriverOptions
))
{
throw
new
MysqliException
(
sprintf
(
$exceptionMsg
,
'Unsupported'
,
$option
,
$value
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment