1--TEST-- 2odbc_exec(): Basic test 3--SKIPIF-- 4<?php include 'skipif.inc'; ?> 5--FILE-- 6<?php 7 8include 'config.inc'; 9 10$conn = odbc_connect($dsn, $user, $pass); 11 12odbc_exec($conn, 'foo', 'bar'); 13odbc_exec($conn, 'foo'); 14 15odbc_exec($conn, '', ''); 16odbc_exec($conn, ''); 17 18odbc_exec($conn, 1, 1); 19odbc_exec($conn, 1); 20 21odbc_exec($conn, NULL, NULL); 22odbc_exec($conn, NULL); 23 24?> 25--EXPECTF-- 26Warning: odbc_exec() expects parameter 3 to be long, %unicode_string_optional% given in %s on line %d 27 28Warning: odbc_exec(): SQL error: %s in %s on line %d 29 30Warning: odbc_exec() expects parameter 3 to be long, %unicode_string_optional% given in %s on line %d 31 32Warning: odbc_exec(): SQL error: %s in %s on line %d 33 34Warning: odbc_exec(): SQL error: %s in %s on line %d 35 36Warning: odbc_exec(): SQL error: %s in %s on line %d 37 38Warning: odbc_exec(): SQL error: %s in %s on line %d 39 40Warning: odbc_exec(): SQL error: %s in %s on line %d 41