8000 Mysqli is missing some driver connection options · Issue #2735 · doctrine/dbal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Mysqli is missing some driver connection options #2735
Closed
@leadboots5

Description

@leadboots5

According to the documentation(http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html) the mysqli driver will allow any of the real_connect options(http://php.net/manual/en/mysqli.real-connect.php). However if you specify MYSQLI_CLIENT_SSL it doesn't get passed to the real connect call(

if ( ! $this->_conn->real_connect($params['host'], $username, $password, $dbname, $port, $socket, $flags)) {
) it would appear. If I var_dump $flags right before it is called then I get NULL.

If by chance I'm doing something wrong my my driverOptions please let me know. I've tried driver options with and quotes. I've also tried giving it a value of T or TRUE, but DBAL says that is an unsupported option

$connectionParams = [ 'driver' => 'mysqli', 'host' => 'remotehostname', 'dbname' => 'targetdb', 'user' => 'username', 'password' => 'password', 'driverOptions' => [MYSQLI_CLIENT_SSL] ];

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0