Skip to content

Commit

Permalink
invalid document for insert: keys cannot contain "."
Browse files Browse the repository at this point in the history
See perftools/xhgui#209 (comment)

`invalid document for insert: keys cannot contain ".": "main()==>load::admin/index.php"`
  • Loading branch information
Diego Vieira authored Aug 19, 2019
1 parent 1388249 commit c0465ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions external/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ function () {
} else {
$data['profile'] = xhprof_disable();
}

$profile = [];
foreach($data['profile'] as $key => $value) {
$profile[strtr($key, ['.' => '_'])] = $value;
}
$data['profile'] = $profile;

// ignore_user_abort(true) allows your PHP script to continue executing, even if the user has terminated their request.
// Further Reading: http://blog.preinheimer.com/index.php?/archives/248-When-does-a-user-abort.html
Expand Down

0 comments on commit c0465ed

Please sign in to comment.