I have written a piece of code which is crashing Apache process. I would like to know if there is any way I can get any helpful information logged anywhere or if there is any way at all I can investigate what happened?
The code which is crashing:
$mysqli = new mysqli($host, $user, $pass, $db);
$stmtQuery = $mysqli->prepare("SELECT ?, 'name'");
$stmtQuery->bind_result($id, $name);
$stmtQuery->attr_set(MYSQLI_STMT_ATTR_CURSOR_TYPE, MYSQLI_CURSOR_TYPE_READ_ONLY);
$stmtQuery->bind_param('i', $i);
$stmtQuery->execute();
$stmtQuery->get_result()->fetch_assoc();
There is nothing in PHP error_log.
In Apache error_log all I see is:
[mpm_winnt:notice] [pid 8212:tid 652] AH00428: Parent: child process 20232 exited with status 3221225477 -- Restarting.
I don't know what this status means, and I am looking for more insightful crash report.