|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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); PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 16:00:01 2025 UTC |
<?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);