1--TEST-- 2Bug #80152 (odbc_execute() moves internal pointer of $params) 3--SKIPIF-- 4<?php include 'skipif.inc'; ?> 5--FILE-- 6<?php 7include 'config.inc'; 8 9$conn = odbc_connect($dsn, $user, $pass); 10odbc_exec($conn,"CREATE TABLE bug80152 (id INT, name CHAR(24))"); 11$stmt = odbc_prepare($conn,"INSERT INTO bug80152 (id, name) VALUES (?, ?)"); 12$params = [1, "John", "Lim"]; 13var_dump(key($params)); 14odbc_execute($stmt, $params); 15var_dump(key($params)); 16?> 17--CLEAN-- 18<?php 19include 'config.inc'; 20 21$conn = odbc_connect($dsn, $user, $pass); 22odbc_exec($conn, "DROP TABLE bug80152"); 23?> 24--EXPECT-- 25int(0) 26int(0) 27