php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #77203 mysqlnd.net_read_timeout CAN be changed via PHP_INI_PERDIR
Submitted: 2018-11-26 10:45 UTC Modified: 2018-11-26 12:00 UTC
From: contact at sshilko dot com Assigned: cmb (profile)
Status: Closed Package: MySQLi related
PHP Version: 7.2.12 OS: Amazon Linux 2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: contact at sshilko dot com
New email:
PHP Version: OS:

 

 [2018-11-26 10:45 UTC] contact at sshilko dot com
Description:
------------
I can change mysqlnd.net_read_timeout
http://php.net/manual/en/mysqlnd.config.php

via ".user.ini" configuration per-directory file.
And also via ini_set('mysqlnd.net_read_timeout', 10);


I think documentation is incorrect, cause it states 
PHP_INI_SYSTEM (Entry can be set in php.ini or httpd.conf).

There even was a ticket to allow it to be set via ini_set()

https://bugs.php.net/bug.php?id=64952

so just documentation outdated

Test script:
---------------
<?php

$oldTimeout = ini_get('mysqlnd.net_read_timeout');
$newTimeout = rand(1,99);
ini_set('mysqlnd.net_read_timeout', $newTimeout);

echo ($oldTimeout != $newTimeout);


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-11-26 10:46 UTC] contact at sshilko dot com
<?php

$oldTimeout = ini_get('mysqlnd.net_read_timeout');
$newTimeout = rand(1,99);

ini_set('mysqlnd.net_read_timeout', $newTimeout);

$newTimeout = ini_get('mysqlnd.net_read_timeout');

echo ($oldTimeout != $newTimeout);
 [2018-11-26 11:02 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2018-11-26 12:00 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=346042
Log: Fix #77203: mysqlnd.net_read_timeout CAN be changed via PHP_INI_PERDIR

We also document the changed default value, cf.
&lt;http://git.php.net/?p=php-src.git;a=commit;h=543cc08a75039ed934ecc1fe973ec23df7c19df9&gt;.
 [2018-11-26 12:00 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2018-11-26 12:00 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:05 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=bc967bc8e241b094427227fb46adf4e6c9671e2a
Log: Fix #77203: mysqlnd.net_read_timeout CAN be changed via PHP_INI_PERDIR
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC