--TEST-- GH-12107 (When running a stored procedure (that returns a result set) twice, PHP crashes) --EXTENSIONS-- mysqli --SKIPIF-- --FILE-- query($sql); echo "Start or run 1\n"; $stmt = $mysqli->prepare("call `gh12107`()"); $stmt->execute(); $stmt->bind_result($output); var_dump($stmt->fetch()); var_dump($output); unset($output); echo "End of run 1\n"; echo "Start or run 2\n"; $stmt->execute(); $stmt->bind_result($output); var_dump($stmt->fetch()); var_dump($output); echo "End of run 2\n"; ?> --CLEAN-- --EXPECT-- Start or run 1 bool(true) string(11) "hello world" End of run 1 Start or run 2 bool(true) string(11) "hello world" End of run 2