Created
April 8, 2015 12:33
-
-
Save timersys/1ee28904d97b2ed2c3ff to your computer and use it in GitHub Desktop.
Debug tips, get all errors and check where class was defined
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Display all errors no matter what | |
| * / | |
| error_reporting(E_ALL); | |
| ini_set('display_errors', 1); | |
| /** | |
| * Find where the class was defined | |
| * / | |
| class Foo {} | |
| $reflector = new ReflectionClass('Foo'); | |
| echo $reflector->getFileName(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment