├── example
├── call_via_native.php
├── missing_argument.php
├── unknown_variable.php
├── class_not_found.php
├── very_wide_stack.php
├── js_injection.php
├── js_synchronous.php
└── multiple_exceptions.php
├── composer.json
├── .gitattributes
├── .gitignore
└── Readme.md
/example/call_via_native.php:
--------------------------------------------------------------------------------
1 | alert('blah')");
13 |
--------------------------------------------------------------------------------
/example/unknown_variable.php:
--------------------------------------------------------------------------------
1 | alert('blah')");
15 |
16 | echo '{a: 39}';
17 |
--------------------------------------------------------------------------------
/example/class_not_found.php:
--------------------------------------------------------------------------------
1 | alert('blah')");
16 |
17 | echo '{a: 39}';
18 |
--------------------------------------------------------------------------------
/example/very_wide_stack.php:
--------------------------------------------------------------------------------
1 | true) );
4 |
5 | function a() {
6 | b();
7 | }
8 |
9 | function b() {
10 | $foo = $bar;
11 | }
12 |
13 | a( "fooobar fooobar fooobar fooobar fooobar fooobar fooobar fooobar fooobar fooobar", "fooobar", "fooobar", "fooobar", "fooobar", "fooobar", "fooobar", "fooobar" );
14 |
--------------------------------------------------------------------------------
/example/js_injection.php:
--------------------------------------------------------------------------------
1 |
5 |
9 |
10 |
11 |
12 |
19 |
--------------------------------------------------------------------------------
/example/js_synchronous.php:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
22 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "joseph-lenton/php-error",
3 | "description": "Better error reporting for PHP, and prettier too!",
4 | "version": "1.0.0",
5 | "homepage": "https://github.com/JosephLenton/PHP-Error",
6 | "license": "BSD-3-Clause",
7 | "require": {
8 | "php": ">=5.3.0"
9 | },
10 | "repositories": [
11 | {
12 | "type": "git",
13 | "url": "https://github.com/JosephLenton/PHP-Error"
14 | }
15 | ],
16 | "keywords": [
17 | "php",
18 | "error",
19 | "reporting"
20 | ],
21 | "authors": [
22 | {
23 | "name": "Joseph Lenton",
24 | "homepage": "http://www.playmycode.com",
25 | "role": "Developer"
26 | }
27 | ],
28 | "autoload": {
29 | "files": ["src/php_error.php"]
30 | }
31 | }
--------------------------------------------------------------------------------
/example/multiple_exceptions.php:
--------------------------------------------------------------------------------
1 |
59 | ```
60 |
61 | Documentation
62 | -------------
63 |
64 | ### [Example Setup](https://github.com/JosephLenton/PHP-Error/wiki/Example-Setup)
65 |
66 | ### [API](https://github.com/JosephLenton/PHP-Error/wiki/API)
67 |
68 | ### [Options](https://github.com/JosephLenton/PHP-Error/wiki/Options)
69 |
70 | ### [php.ini settings](https://github.com/JosephLenton/PHP-Error/wiki/php.ini)
71 |
72 | Advanced Features
73 | -----------------
74 |
75 | * customization
76 | * manually turn it on and off
77 | * run specific sections without error reporting
78 | * ignore files allowing you to avoid highlighting code in your stack trace
79 | * application files; these are prioritized when an error strikes!
80 |
81 | 
82 |
83 |
84 |
--------------------------------------------------------------------------------