Buffers are properly handled. If error occurs inside the buffer, it will be cleaned.

But outside buffers, like gz_output will be left in touch
check if buffer is set up
Close and flush the buffer
fix
Added composer.json. Fixes #38 and #32

Signed-off-by: Alex Bilbie <alex@alexbilbie.com>
Update composer.json

Correct name and license parameters
Remove trailing whitespace
Check transfer encoding to prevent JS injection in binary
added concrete5 support

This is from pull request
https://github.com/KorvinSzanto/PHP-Error/commit/07ee63c48c838d1109294f5175f9cb7f837e309e
fixed concrete 5 options type
fixed duplicate session start bug
fixed incorrect server name in options parameter
ace is now displaying
code now switches between files in ace
correctly switches between files in ace

* Syntax highlighting for ace now matches the original
syntax highlighting used by PHP Error.
* Ace now correct switches between files, using the stack file selector.
simplified the code

The twilight theme has been removed from the JavaScript,
and instead provided through the CSS script.
This has reduced the amount of code, and should improve
rendering a tad.

The editor is also now padded in now on the left side,
and close matches how it was before ace was added.

The line heights of the h2 elements,
is now fixed (before they were being set the 18px).
simplified isNonPHPRequest, and made visual changed to editor

Fixed a finding bug in isNonPHPRequest,
and simplified the code, so it does a lot less.

I also changed the editor, so that it is now
laid out a little nicer, in relation to the headers.
if the same file appears multiple times, it's now outputted once

Before the file for each stack trace line,
was always outputted. This was regardless of
if the same file is in the stack multiple times,
or not.

Now, each file that is mentioned in the stack,
is only outputted once to the front end.
added a button at the top for saving changes
can now save changes back to the server