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
df465cca
Unverified
Commit
df465cca
authored
Jul 03, 2020
by
Sergei Morozov
Committed by
GitHub
Jul 03, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4142 from siimsoni/msyqli_opt_read_timeout
Add support for MYSQLI_OPT_READ_TIMEOUT
parents
0a4630aa
c4325fd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
MysqliConnection.php
lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
+3
-5
No files found.
lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
View file @
df465cca
...
...
@@ -11,7 +11,6 @@ use Doctrine\DBAL\Driver\ServerInfoAwareConnection;
use
Doctrine\DBAL\ParameterType
;
use
mysqli
;
use
function
defined
;
use
function
floor
;
use
function
func_get_args
;
use
function
in_array
;
...
...
@@ -28,6 +27,7 @@ use function stripos;
use
const
MYSQLI_INIT_COMMAND
;
use
const
MYSQLI_OPT_CONNECT_TIMEOUT
;
use
const
MYSQLI_OPT_LOCAL_INFILE
;
use
const
MYSQLI_OPT_READ_TIMEOUT
;
use
const
MYSQLI_READ_DEFAULT_FILE
;
use
const
MYSQLI_READ_DEFAULT_GROUP
;
use
const
MYSQLI_SERVER_PUBLIC_KEY
;
...
...
@@ -245,15 +245,13 @@ class MysqliConnection implements ConnectionInterface, PingableConnection, Serve
$supportedDriverOptions
=
[
MYSQLI_OPT_CONNECT_TIMEOUT
,
MYSQLI_OPT_LOCAL_INFILE
,
MYSQLI_OPT_READ_TIMEOUT
,
MYSQLI_INIT_COMMAND
,
MYSQLI_READ_DEFAULT_FILE
,
MYSQLI_READ_DEFAULT_GROUP
,
MYSQLI_SERVER_PUBLIC_KEY
,
];
if
(
defined
(
'MYSQLI_SERVER_PUBLIC_KEY'
))
{
$supportedDriverOptions
[]
=
MYSQLI_SERVER_PUBLIC_KEY
;
}
$exceptionMsg
=
"%s option '%s' with value '%s'"
;
foreach
(
$driverOptions
as
$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