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
000b5a73
Commit
000b5a73
authored
Oct 20, 2014
by
Kim Hemsø Rasmussen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #698 from deeky666/support-hhvm-mysqli-driver
[DBAL-1014] Support HHVM mysqli driver
parents
3149a9fd
c840beba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
.travis.yml
.travis.yml
+0
-2
MysqliConnection.php
lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
+6
-0
DBAL421Test.php
tests/Doctrine/Tests/DBAL/Functional/Ticket/DBAL421Test.php
+2
-0
No files found.
.travis.yml
View file @
000b5a73
...
...
@@ -45,8 +45,6 @@ matrix:
env
:
DB=sqlite
-
php
:
hhvm
env
:
DB=mysql
-
php
:
hhvm
env
:
DB=mysqli
-
php
:
hhvm-nightly
exclude
:
-
php
:
hhvm
...
...
lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php
View file @
000b5a73
...
...
@@ -50,6 +50,12 @@ class MysqliConnection implements Connection, PingableConnection, ServerInfoAwar
public
function
__construct
(
array
$params
,
$username
,
$password
,
array
$driverOptions
=
array
())
{
$port
=
isset
(
$params
[
'port'
])
?
$params
[
'port'
]
:
ini_get
(
'mysqli.default_port'
);
// Fallback to default MySQL port if not given.
if
(
!
$port
)
{
$port
=
3306
;
}
$socket
=
isset
(
$params
[
'unix_socket'
])
?
$params
[
'unix_socket'
]
:
ini_get
(
'mysqli.default_socket'
);
$dbname
=
isset
(
$params
[
'dbname'
])
?
$params
[
'dbname'
]
:
null
;
...
...
tests/Doctrine/Tests/DBAL/Functional/Ticket/DBAL421Test.php
View file @
000b5a73
...
...
@@ -39,6 +39,8 @@ class DBAL421Test extends \Doctrine\Tests\DbalFunctionalTestCase
$this
->
assertNotContains
(
$guid
,
$guids
,
"Duplicate GUID detected"
);
$guids
[]
=
$guid
;
}
$statement
->
closeCursor
();
}
private
function
getSelectGuidSql
()
...
...
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