Doc #78399 [Opn->Csd]: mysqli ssl_set null parameters
| From: | cmb@php.net | Date: | Sun, 11 Aug 2019 16:54:54 +0000 |
| Subject: | Doc #78399 [Opn->Csd]: mysqli ssl_set null parameters | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-16876@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78399&edit=1
ID: 78399
Updated by: cmb@php.net
Reported by: williamdes at wdes dot fr
Summary: mysqli ssl_set null parameters
-Status: Open
+Status: Closed
Type: Documentation Problem
-Package: Documentation problem
+Package: MySQLi related
Operating System: Ubuntu 18.10
PHP Version: 7.1.31
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Thanks!
Previous Comments:
------------------------------------------------------------------------
[2019-08-11 16:54:28] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=347835
Log: Fix #78399: mysqli ssl_set null parameters
------------------------------------------------------------------------
[2019-08-11 16:27:49] williamdes at wdes dot fr
Description:
------------
The documentation says "Any unused SSL parameters may be given as NULL" but the signature
indicates that the parameters can not be null.
"mysqli::ssl_set ( string $key , string $cert , string $ca , string $capath , string $cipher )
: bool"
So it throws an error "NOTICE: PHP message: PHP Fatal error: Uncaught TypeError:
mysqli::ssl_set() expects parameter 1 to be string, null given in
/mnt/Dev/phpmyadmintest/libraries/classes/Dbi/DbiMysqli.php:86"
---
From manual page: https://php.net/mysqli.ssl-set
---
Discovered while searching for : https://github.com/phpmyadmin/phpmyadmin/issues/15304#issuecomment-520240241
Actual result:
--------------
NOTICE: PHP message: PHP Fatal error: Uncaught TypeError: mysqli::ssl_set() expects parameter 1 to
be string, null given in /mnt/Dev/phpmyadmintest/libraries/classes/Dbi/DbiMysqli.php:86
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78399&edit=1