-
Notifications
You must be signed in to change notification settings - Fork 318
Description
Greetings.
Using psysh v10.8 (great job BTW) to break in a moodle module I am developing. It appears that this causes the mysqli connection to go away in a semi-random fashion (meaning moving breaks around results in different outcomes).
The diagnostic is:
Couldn't fetch mysqli in [...]/lib/dml/mysqli_native_moodle_database.php
This error is always present at exit, but it does also appear during program execution depending on the breakpoint(s) location (and just before errors, $DB->mysqli->ping() returns indeed false).
I use ^D to get out of a breakpoint and continue execution, and I am speculating that the destructor for the global $DB object is called when i do that (the destructor calls mysqli->close()).
Is that what I am seeing, and if so, can it be avoided?