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
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: 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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 12:01:32 2024 UTC