php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #75500 Constant PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT not documented
Submitted: 2017-11-08 11:35 UTC Modified: 2019-01-01 22:33 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: christian dot studer at meteotest dot ch Assigned: girgias (profile)
Status: Closed Package: PDO MySQL
PHP Version: 7.0.25 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: christian dot studer at meteotest dot ch
New email:
PHP Version: OS:

 

 [2017-11-08 11:35 UTC] christian dot studer at meteotest dot ch
Description:
------------
---
From manual page: http://www.php.net/ref.pdo-mysql
---

The constant PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT (Which disables verification of the CA file and allows for self made CAs) is not documented.

Behaviour is the same as MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT (http://php.net/manual/en/mysqli.real-connect.php)

Added in this commit: http://git.php.net/?p=php-src.git;a=commit;h=247ce052cd0fc7d0d8ea1a0e7ea2075e9601766a

Test script:
---------------
var_dump(PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT);

Expected result:
----------------
TRUE/FALSE.

Actual result:
--------------
TRUE/FALSE.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-02-02 13:48 UTC] phpbug at theochino dot com
Not only it's not documented, but it doesn't give an error.
No Certificate invalid, no anything ... just blank

SQLSTATE[HY000] [2002]
 [2019-01-01 22:33 UTC] girgias@php.net
-Status: Open +Status: Closed -Package: Documentation problem +Package: PDO MySQL -Assigned To: +Assigned To: girgias
 [2019-01-01 22:33 UTC] girgias@php.net
This seems to have been fixed.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri May 24 07:01:26 2019 UTC