diff options
author | Thomas Orozco <thomas@orozco.fr> | 2016-06-09 10:45:40 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-03-09 17:31:21 +0100 |
commit | 247ce052cd0fc7d0d8ea1a0e7ea2075e9601766a (patch) | |
tree | d527d9e76fbe58112b32b561685202a518759c61 /ext/pdo_mysql/pdo_mysql.c | |
parent | b224e7426713befd7449117afd68355231f9077e (diff) | |
download | php-git-247ce052cd0fc7d0d8ea1a0e7ea2075e9601766a.tar.gz |
Fixed bug #71003: Add PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT
Diffstat (limited to 'ext/pdo_mysql/pdo_mysql.c')
-rw-r--r-- | ext/pdo_mysql/pdo_mysql.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/pdo_mysql/pdo_mysql.c b/ext/pdo_mysql/pdo_mysql.c index 32b85ba547..99fb6d3b77 100644 --- a/ext/pdo_mysql/pdo_mysql.c +++ b/ext/pdo_mysql/pdo_mysql.c @@ -130,6 +130,9 @@ static PHP_MINIT_FUNCTION(pdo_mysql) REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_SERVER_PUBLIC_KEY", (zend_long)PDO_MYSQL_ATTR_SERVER_PUBLIC_KEY); #endif REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_MULTI_STATEMENTS", (zend_long)PDO_MYSQL_ATTR_MULTI_STATEMENTS); +#ifdef PDO_USE_MYSQLND + REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_SSL_VERIFY_SERVER_CERT", (zend_long)PDO_MYSQL_ATTR_SSL_VERIFY_SERVER_CERT); +#endif #ifdef PDO_USE_MYSQLND mysqlnd_reverse_api_register_api(&pdo_mysql_reverse_api); |