Doc #77203 [Ver->Csd]: mysqlnd.net_read_timeout CAN be changed via PHP_INI_PERDIR

From: Date: Mon, 26 Nov 2018 12:00:46 +0000
Subject: Doc #77203 [Ver->Csd]: mysqlnd.net_read_timeout CAN be changed via PHP_INI_PERDIR
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16176@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77203&edit=1 ID: 77203 Updated by: cmb@php.net Reported by: contact at sshilko dot com Summary: mysqlnd.net_read_timeout CAN be changed via PHP_INI_PERDIR -Status: Verified +Status: Closed Type: Documentation Problem Package: MySQLi related Operating System: Amazon Linux 2 PHP Version: 7.2.12 Assigned To: cmb Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2018-11-26 12:00:20] 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 10:46:57] 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 10:45:26] 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); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77203&edit=1

« previous php.doc.bugs (#16176) next »