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

From: Date: Mon, 26 Nov 2018 11:02:37 +0000
Subject: Doc #77203 [Opn->Ver]: 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-16174@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: Open +Status: Verified Type: Documentation Problem Package: MySQLi related Operating System: Amazon Linux 2 PHP Version: 7.2.12 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [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 (#16174) next »