php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #78399 mysqli ssl_set null parameters
Submitted: 2019-08-11 16:27 UTC Modified: 2019-08-11 16:54 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: williamdes at wdes dot fr Assigned: cmb (profile)
Status: Closed Package: MySQLi related
PHP Version: 7.1.31 OS: Ubuntu 18.10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: williamdes at wdes dot fr
New email:
PHP Version: OS:

 

 [2019-08-11 16:27 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-08-11 16:54 UTC] 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:54 UTC] cmb@php.net
-Status: Open +Status: Closed -Package: Documentation problem +Package: MySQLi related -Assigned To: +Assigned To: cmb
 [2019-08-11 16:54 UTC] cmb@php.net
Thanks!
 [2019-08-11 16:55 UTC] salathe@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=7ac5d335eed87895ec91f31435e62800ee04f54b
Log: Fix #78399: mysqli ssl_set null parameters
 [2020-02-07 06:04 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=b01a4a7e94e57ead3c954aefde2423f81c5a5a29
Log: Fix #78399: mysqli ssl_set null parameters
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Feb 22 22:00:01 2026 UTC