php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #80767 not just options(), but also ssl_set() can be called before real_connect()
Submitted: 2021-02-18 00:57 UTC Modified: 2021-02-18 10:50 UTC
From: mcruz at firmseek dot com Assigned:
Status: Closed Package: MySQLi related
PHP Version: 7.3.27 OS: n/a
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mcruz at firmseek dot com
New email:
PHP Version: OS:

 

 [2021-02-18 00:57 UTC] mcruz at firmseek dot com
Description:
------------
---
From manual page: https://php.net/mysqli.init
---

The note on the page says: "Any subsequent calls to any mysqli function (except mysqli_options()) will fail until mysqli_real_connect() was called."

However, that's not quite true: The function mysqli_ssl_set() can also be called before mysqli_real_connect(), and indeed it must be if it mysqli_ssl_set() used at all.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-02-18 10:50 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2021-02-18 11:08 UTC] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=93577455fee1d0ab9d76350f500670b37216a66f
Log: Fix #80767: not just options(), but also ssl_set() can be called before real_connect()
 [2021-02-18 11:08 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2021-02-19 13:15 UTC] mumumu@php.net
Automatic comment on behalf of mumumu@mumumu.org
Revision: http://git.php.net/?p=doc/ja.git;a=commit;h=e23c182e875059de461e52072b640126b45b0b7d
Log: Fix #80767: not just options(), but also ssl_set() can be called before real_connect()
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 04:01:30 2024 UTC