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

List:       php-doc-bugs
Subject:    [DOC-BUGS] Doc #77203 [Ver->Csd]: mysqlnd.net_read_timeout CAN be changed via PHP_INI_PERDIR
From:       cmb () php ! net
Date:       2018-11-26 12:00:46
Message-ID: E1gRFZG-0003Wv-NB () 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:             Verified
+Status:             Closed
 Type:               Documentation Problem
 Package:            MySQLi related
 Operating System:   Amazon Linux 2
 PHP Version:        7.2.12
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


Previous Comments:
------------------------------------------------------------------------
[2018-11-26 12:00:20] cmb@php.net

Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=346042
Log: Fix #77203: mysqlnd.net_read_timeout CAN be changed via PHP_INI_PERDIR

We also document the changed default value, cf.
<http://git.php.net/?p=php-src.git;a=commit;h=543cc08a75039ed934ecc1fe973ec23df7c19df9>.

------------------------------------------------------------------------
[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