|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69143 Config file content not reloaded during script execution
Submitted: 2015-02-28 07:35 UTC Modified: 2017-10-24 04:27 UTC
From: morgan dot nilsson at ateles dot se Assigned:
Status: Suspended Package: mysqlnd_ms (PECL)
PHP Version: 5.5.22 OS: Ubuntu 14.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
3 + 25 = ?
Subscribe to this entry?

 [2015-02-28 07:35 UTC] morgan dot nilsson at ateles dot se
If the contents of the mysqlnd_ms.config_file is changed it does not seem to be reloaded in a running process (apache, cli).


"The PHP configuration directive mysqlnd_ms.config_file is used to set the plugins configuration file. Please note, that the PHP configuration directive may not be evaluated for every web request. Therefore, changing the plugins configuration file name or location may require a PHP restart. However, no restart is required to read changes if an already existing plugin configuration file is updated."

mysqlnd_ms.enable = 1
mysqlnd_ms.config_file = "/etc/mysqlnd_ms.json"

Content of /etc/mysqlnd_ms.json:

    "db": {
        "master": {
            "master_0": {
                "host": "db1",
                "port": "3306"
        "slave": [


Test script:
$db = new PDO($dsn, $user, $pass);
sleep(10); # change content in /etc/mysqlnd_ms.json: db1 -> db2
$db = new PDO($dsn, $user, $pass);

Expected result:
Second connection should connect to db2.

Actual result:
Still connects to db1.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-24 04:28 UTC]
-Status: Open +Status: Suspended
 [2017-10-24 04:28 UTC]
I'm gonna suspend this report as the mysqlnd_ms had not a release since 2013 or active commit activity since then, if activity comes back to this package, it should be re-opened
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Mar 05 03:01:24 2021 UTC