зеркало из https://github.com/microsoft/msphpsql.git
fetching float as integers doesn't work for PHP 7.0
This commit is contained in:
Родитель
b5821b28f8
Коммит
f40eeac83c
|
@ -85,8 +85,8 @@ function testOutputFloats($fetchNumeric, $inout)
|
|||
// call stored procedure
|
||||
$outSql = getCallProcSqlPlaceholders($spname, 2);
|
||||
foreach ($pdoParamTypes as $pdoParamType) {
|
||||
if ($pdoParamType == PDO::PARAM_INT && strtoupper(substr(PHP_OS, 0, 3)) != 'WIN') {
|
||||
// Bug 2876 in VSO: Linux - when retrieving a float as OUTPUT
|
||||
if ($pdoParamType == PDO::PARAM_INT && (strtoupper(substr(PHP_OS, 0, 3)) != 'WIN' || substr(PHP_VERSION, 0, 3) == "7.0")) {
|
||||
// Bug 2876 in VSO: Linux or PHP 7.0 - when retrieving a float as OUTPUT
|
||||
// or INOUT parameter with PDO::PARAM_INT, the returned values
|
||||
// are always single digits, regardless of the original floats
|
||||
continue;
|
||||
|
|
Загрузка…
Ссылка в новой задаче