[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-bugs
Subject:    [DOC-BUGS] Doc #77203 [Opn->Ver]: mysqlnd.net_read_timeout CAN be changed via PHP_INI_PERDIR
From:       cmb () php ! net
Date:       2018-11-26 11:02:37
Message-ID: E1gREez-0003C2-5i () bugs ! php ! net
[Download RAW message or body]

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

-- 
PHP Documentation Bugs Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic