php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #64952 Allow mysqlnd.net_read_timeout to be set via ini_set()
Submitted: 2013-05-31 07:35 UTC Modified: 2016-10-17 16:44 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:1 (33.3%)
From: mail at mark-plomer dot de Assigned: andrey (profile)
Status: Closed Package: MySQL related
PHP Version: 5.4.15 OS:
Private report: No CVE-ID: None
 [2013-05-31 07:35 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-10-17 16:44 UTC] andrey@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: andrey
 [2016-10-17 16:44 UTC] andrey@php.net
Fixed in 5.6.28 / 7.0.13
 [2016-10-17 17:32 UTC] mail at mark-plomer dot de
Thanks :-)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 08:01:28 2024 UTC