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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 02:01:30 2024 UTC