--TEST-- mysqli_stmt_error() --EXTENSIONS-- mysqli --SKIPIF-- --FILE-- query('KILL '.mysqli_thread_id($link)); if (true === ($tmp = mysqli_stmt_execute($stmt))) printf("[009] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); // set after client error if ('' === ($tmp = mysqli_stmt_error($stmt))) printf("[010] Expecting string/any non empty, got %s/%s\n", gettype($tmp), $tmp); mysqli_stmt_close($stmt); try { mysqli_stmt_error($stmt); } catch (Error $exception) { echo $exception->getMessage() . "\n"; } mysqli_close($link); print "done!"; ?> --CLEAN-- --EXPECT-- mysqli_stmt object is already closed done!