Req #64952 [Com]: Allow mysqlnd.net_read_timeout to be set via ini_set()
| From: | mail at mark-plomer dot de | Date: | Mon, 17 Oct 2016 17:32:06 +0000 |
| Subject: | Req #64952 [Com]: Allow mysqlnd.net_read_timeout to be set via ini_set() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-204878@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64952&edit=1
ID: 64952
Comment by: mail at mark-plomer dot de
Reported by: mail at mark-plomer dot de
Summary: Allow mysqlnd.net_read_timeout to be set via
ini_set()
Status: Closed
Type: Feature/Change Request
Package: MySQL related
PHP Version: 5.4.15
Assigned To: andrey
Block user comment: N
Private report: N
New Comment:
Thanks :-)
Previous Comments:
------------------------------------------------------------------------
[2016-10-17 16:44:35] andrey@php.net
Fixed in 5.6.28 / 7.0.13
------------------------------------------------------------------------
[2013-05-31 07:35:28] mail at mark-plomer dot de
Description:
------------
For different use-cases we need different timeouts, and it is sometimes not possible (or at least
difficult) to achieve this via "-d mysqlnd.net_read_timeout=...".
IMHO it should be no security-problem to change mode from PHP_INI_SYSTEM to PHP_INI_ALL for
mysqlnd.net_read_timeout, or am I wrong?
Test script:
---------------
ini_set('mysqlnd.net_read_timeout', 10);
echo ini_get('mysqlnd.net_read_timeout');
Expected result:
----------------
10
Actual result:
--------------
31536000
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64952&edit=1