--TEST-- Bug #80837 Calling stmt_store_result after fetch doesn't throw an error --SKIPIF-- --FILE-- query('DROP TABLE IF EXISTS test'); $mysqli->query('CREATE TABLE test (b int)'); $mysqli->query('INSERT INTO test VALUES (1),(2),(3)'); $statement = $mysqli->prepare("SELECT b FROM test"); $statement->execute(); $statement->bind_result($name); $statement->fetch(); try { $statement->store_result(); } catch (mysqli_sql_exception $e) { echo $e->getMessage(); } $mysqli->close(); ?> --CLEAN-- --EXPECTF-- Commands out of sync; you can't run this command now