mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-7.0' into PHP-7.1
This commit is contained in:
commit
314ef0ff69
5 changed files with 23 additions and 0 deletions
|
@ -735,6 +735,18 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options)
|
|||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef PDO_USE_MYSQLND
|
||||
{
|
||||
zend_long ssl_verify_cert = pdo_attr_lval(driver_options,
|
||||
PDO_MYSQL_ATTR_SSL_VERIFY_SERVER_CERT, -1);
|
||||
if (ssl_verify_cert != -1) {
|
||||
connect_opts |= ssl_verify_cert ?
|
||||
CLIENT_SSL_VERIFY_SERVER_CERT:
|
||||
CLIENT_SSL_DONT_VERIFY_SERVER_CERT;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef PDO_MYSQL_HAS_CHARSET
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue