We have a problem with floating point values returned from maxdb by odbc in php. The returned value ends with some various garbage. ("s¦¦¦" in this example. It seems to be something from other memory areas, that gets attached to the value)
Environment:
SUSE Linux Enterprise Server 12 SP4, MaxDB 7.9.09.10
Here is a short example to reproduce the problem:
$conn = odbc_connect("a","b","c")
$sql="SELECT (1+(1/3)) FROM dual";
$mid = odbc_do($conn,$sql);
if($rs=odbc_fetch_array($mid)) {
print_r($rs);
}
Array
(
[EXPRESSION1] => 1.3333333333333333333333s¦¦¦
)