I have a piece of code like this:
$conn = new mysqli($host, $username, $passwd, $dbname);
$stmt = $conn->prepare('SELECT ...');
// do something here
// do something more here that has absolutely nothing to do with $stmt
Property access is not allowed yet
Couldn't fetch mysqli_stmt
One way to get rid of this messages is to add
after closing the statement and before the breakpoint. If this does not help, you should also add
after closing the connection as mentioned by @Martin in the comments.
This does not solve the problem itself, but let you go on with your work until this may be fixed some time.
EDIT: Now there is also a reported issue :)
EDIT: This seems to be a bug in the MySQLi driver as reported here.
EDIT: Looks like this bug does not appear if you use PDO. So this is maybe an other reason to switch to PDO.