php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76497 MYSQLI_OPT_READ_TIMEOUT undocumented
Submitted: 2018-06-18 22:59 UTC Modified: 2020-12-11 22:06 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: php at darkain dot com Assigned: daverandom (profile)
Status: Closed Package: MySQLi related
PHP Version: Irrelevant 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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at darkain dot com
New email:
PHP Version: OS:

 

 [2018-06-18 22:59 UTC] php at darkain dot com
Description:
------------
http://php.net/manual/en/mysqli.options.php

MYSQLI_OPT_READ_TIMEOUT is entirely undocumented.

This option is also the solution to PHP Bug #67913 in which a successful TCP connection is made (so CONNECT TIMEOUT doens't apply), but the MySQL server hangs forever without transmitting any data afterwards.

https://bugs.php.net/bug.php?id=67913#comment_filter


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-08-23 10:09 UTC] darek334 at gazeta dot pl
If You resolve this as being visible here in manual:
http://php.net/manual/pl/mysqli.options.php
, then confirm here pls.

MYSQLI_OPT_READ_TIMEOUT stack with MYSQLI_OPT_CONNECT_TIMEOUT
 [2018-08-23 16:04 UTC] php at darkain dot com
MYSQLI_OPT_READ_TIMEOUT and MYSQLI_OPT_CONNECT_TIMEOUT are not the same thing, and work at different times. There should be more documentation regardless of all of the options, rather than just a simple one-liner explaining each.
 [2019-01-02 02:18 UTC] girgias@php.net
-Package: Documentation problem +Package: MySQLi related -PHP Version: 7.2.6 +PHP Version: Irrelevant
 [2020-12-11 22:06 UTC] dharman@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: daverandom
 [2020-12-11 22:06 UTC] dharman@php.net
Thanks for reporting this bug. This has recently been documented. The relevant commit can be found here: https://github.com/php/doc-en/commit/2a4707655b2be952e9881ec623fe3a0de2dd8b7c
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 06:01:34 2025 UTC