This has added tokens for the keywords: * insteadof * trait * __trait__ * yield * finally
ErrorException is included in PHP 5.3, and as PHP Error requires 5.3 due to namespaces, it makes less sense to fake the class now.
The latest changes makes PHP Error even less unsafe in production, so I made the warning more prominent.
* display_line_numbers now works again, turning line numbers on or off. * It has been changed from defaulting to 'false', to 'true'.
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.
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.
* 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.
Fix binary js injection
This is from pull request KorvinSzanto@07ee63c
Before the query parameter had to be set to true, i.e. php_error_is_ajax=true Now it can be set to any value; it's existance presumes it should be used. This is to simplify usage.
Now if the query parameter is added, this tells PHP Error it is an ajaxy query. This is useful for iFrame based ajax.
* Fixed failing to buffer ajax output under certain calls. * Fixed iFrame being initialized twice, and failing to get content when first initialized.
IE 9 returns a header as an empty string, if not found. Other browsers returned null. Before it was checking for null, now it checks for an empty string too.
Signed-off-by: Alex Bilbie <email@example.com>
Fix Session already set error. Re-adding the old check, along with the new one.
When I just saw this in PHP Error, I thought PHP was saying 'thrown exception' and failing to provide the exceptions message. I was wrong, and this change is so I don't think that again in say 6 months time.
When checking for values set in the $_SERVER value, I had forget to use 'isset'.
* IIS support is added. When FastCGI logs an error, IIS take over the request by default, and then show it. This meant PHP Error was failing when it logged an error. Now we don't log an error if PHP Error is running (since we are just going to tell them) * background div is now fixed, to cover up anything that has outputted before the error is displayed. * The font set in a previous commit was incorrect, it's now set to the correct, thinner version.