Debian, Mantis 1.1.0a2, PHP5, JPGraph
Posted: 28 Dec 2006, 18:58
Hey,
I'm in the process of upgrading our installation from 1.0.0rc5 (no, really) to 1.1.0a2 (again, really). At the same time, I'm moving the server downstream on our LAN, and putting a reverse apache proxy to access it through our NAT firewall. Loads of fun.
Anyway, I was getting strange results with the images in 1.1.0a2; turns out that the PHP5 in Debian does not have the imageantialias function compiled in. 1.1.0a2 enables it for most of its graphs, so in the end it was easier to tweak jpgraph to ignore the request:
/usr/share/jpgraph-2.1.4/src/jpgraph.php:
Change
to
Ideally we'd want to have a flag in config_inc.php to enable or not anti aliasing, which may be a performance hit anyway, but this was a lot more changes than I cared for at this point. Yes, I know the object will lie about using anti aliasing with the code change above, but this way client code is oblivious to the lack of support.
Alright, back to figuring out the last nagging problems caused by the proxy....
Stephane
I'm in the process of upgrading our installation from 1.0.0rc5 (no, really) to 1.1.0a2 (again, really). At the same time, I'm moving the server downstream on our LAN, and putting a reverse apache proxy to access it through our NAT firewall. Loads of fun.
Anyway, I was getting strange results with the images in 1.1.0a2; turns out that the PHP5 in Debian does not have the imageantialias function compiled in. 1.1.0a2 enables it for most of its graphs, so in the end it was easier to tweak jpgraph to ignore the request:
/usr/share/jpgraph-2.1.4/src/jpgraph.php:
Change
Code: Select all
function SetAntiAliasing($aFlg=true) {
$this->use_anti_aliasing = $aFlg;
imageantialias($this->img,$aFlg);
}
Code: Select all
function SetAntiAliasing($aFlg=true) {
$this->use_anti_aliasing = $aFlg;
if( function_exists('imageantialias') ) {
imageantialias($this->img,$aFlg);
}
}
Alright, back to figuring out the last nagging problems caused by the proxy....
Stephane