1--TEST-- 2Bug #80592 (all floats are the same in ODBC parameters) 3--EXTENSIONS-- 4odbc 5--SKIPIF-- 6<?php include 'skipif.inc'; ?> 7--FILE-- 8<?php 9include 'config.inc'; 10 11$conn = odbc_connect($dsn, $user, $pass); 12odbc_exec($conn,"CREATE TABLE bug80592 (f1 float not null, f2 float not null, f3 float not null)"); 13$stmt = odbc_prepare($conn, "INSERT INTO bug80592 (f1, f2, f3) values (?, ?, ?)"); 14odbc_execute($stmt, [1.0, 2.0, 3.0]); 15$res = odbc_exec($conn, "SELECT f1, f2, f3 from bug80592"); 16var_dump(odbc_fetch_array($res)); 17?> 18--CLEAN-- 19<?php 20include 'config.inc'; 21 22$conn = odbc_connect($dsn, $user, $pass); 23odbc_exec($conn, "DROP TABLE bug80592"); 24?> 25--EXPECT-- 26array(3) { 27 ["f1"]=> 28 string(3) "1.0" 29 ["f2"]=> 30 string(3) "2.0" 31 ["f3"]=> 32 string(3) "3.0" 33} 34