--TEST-- PDO Common: PECL Bug #5809 (PDOStatement::execute(array()) changes param) --EXTENSIONS-- pdo --SKIPIF-- --FILE-- exec("CREATE TABLE test (id int NOT NULL, PRIMARY KEY (id))"); $db->exec("INSERT INTO test (id) VALUES (1)"); $values = array(1); var_dump($values); $stmt = $db->prepare('SELECT * FROM test WHERE id = ?'); $stmt->execute($values); var_dump($values); ?> --EXPECT-- array(1) { [0]=> int(1) } array(1) { [0]=> int(1) }