Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make crashdumpbrowser server work with newer PHP versions and with current client #24

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion haxelib.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"releasenote": "Pre-alpha release",
"contributors": ["larsiusprime"],
"dependencies": {
"openfl": ""
"openfl": "3.6.1"
}
}
4 changes: 2 additions & 2 deletions servers/crashdumpbrowser/includes/constants.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

// Errordump identifiers (corresponding to lines in _error.txt)
define("ERROR_EXCEPTION", "error");
define("ERROR_PROJECTNAME", "game id");
define("ERROR_PROJECTNAME", "package");
define("ERROR_STACK", "stack");
define("ERROR_TIMESTAMP", "crashed");
define("ERROR_VERSION", "version");
Expand Down Expand Up @@ -84,4 +84,4 @@
define("METADATA_DELIMITER", "\r\n");


?>
?>
9 changes: 6 additions & 3 deletions servers/crashdumpbrowser/includes/db.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static function getErrorReports($id, $filters, $order = DB_COL_REPORTID, $orderD
$params[] = &$perPage;
$params[0] = &$types;
if ($stmt = self::$mysqli->prepare($sql)) {
call_user_func_array(array($stmt, "bind_param"), &$params);
call_user_func_array(array($stmt, "bind_param"), $params);
return self::query($stmt);
} else {
throw new Exception(self::$mysqli->error);
Expand Down Expand Up @@ -341,7 +341,10 @@ static function getReports($filters = array(), $order = "", $orderDir = "ASC", $
$types .= "ii";
$params[0] = &$types;
if ($stmt = self::$mysqli->prepare($sql)) {
call_user_func_array(array($stmt, "bind_param"), &$params);
$refs = array();
foreach($params as $key => $value)
$refs[$key] = &$params[$key];
call_user_func_array(array($stmt, "bind_param"), $refs);
return self::query($stmt);
} else {
throw new Exception(self::$mysqli->error);
Expand Down Expand Up @@ -400,4 +403,4 @@ static function checkSetup() {
return true;
}
}
?>
?>
3 changes: 1 addition & 2 deletions servers/crashdumpbrowser/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
$function = trim(substr($line, 0, $separator - 1));
$file = preg_replace('/.*\\(([^)]*)\\).*/', '\\1', $line);
$file = str_replace(" line ", ":", $file);
$readStack = false;
continue;
}
$separator = strpos($line, ":");
Expand Down Expand Up @@ -119,4 +118,4 @@
}
?>
</body>
</html>
</html>