http://stackoverflow.com/questions/1166 ... s-platform
As a result, php_mysql*.dll connects slowly, with some kind of timeout each time. Our MedDream connects to database in ~1 second instead of a few milliseconds. PacsOne's web interface (6.3.5) does that, too.
The easiest solution for us is to use "127.0.0.1" in our configuration examples and recommendations. Under PacsOne, $AeTitle.ini must be modified. This removes the lag from PacsOne web interface as well. However then the User Administration page creates new users as $UserName@'%' instead of $UserName@'127.0.0.1'. I don't know the exact reason but such MySQL users are unusable and can't connect to the server afterwards, even through mysql.exe. (If I manually create a duplicate entry with $UserName@'localhost', they begin to work.)
The simplest solution in general, as recommended by that webpage, is "bind-address = ::" in my.ini. I'm confirming it works indeed. However this is less desirable as it involves changing the configuration set by the customer -- they might have their own reasons for it.
I took a look into PacsOne's *.php files and found "localhost" hardcoded in numerous locations. Our problem can apparently be remedied by the following single change:
Code: Select all
--- database.php.0 2012-02-10 18:04:32.000000000 +0200
+++ database.php 2013-02-20 14:17:58.000000000 +0200
@@ -1865,7 +1865,9 @@
return $converted;
}
function getHostname() {
- return strcasecmp($this->hostname, "localhost")? "%" : "localhost";
+ return (strcasecmp($this->hostname, "localhost") && strcasecmp($this->hostname, "127.0.0.1")) ?
+ "%" :
+ $this->hostname;
}
function getAutoConvertJPG() {
$autoconvert = false;
However I found a similar validation elsewhere. Also at a few places an empty string is changed to "localhost", though this might be easier to avoid.
Do you see any possible problems with this simple change? Must other locations be fixed as well?
And, of course -- can we expect that you fix the issue in some future version?