Last active
August 22, 2016 15:32
-
-
Save MrTrick/8c5b77cfeae2735fc0ab06f676fd15ba to your computer and use it in GitHub Desktop.
WSOD generator, hair-tearing-inducer
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
<? | |
//Report EVERYTHING | |
error_reporting(-1); | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
ini_set('log_errors',true); | |
ini_set('error_log','/home/mrtrick/php.log'); | |
//Check the log file can be written | |
//error_log("TESTING"); | |
//Bad code. Tssk. | |
function bad() { | |
//I'm in ur codebase, screwing your things up. | |
return nosuchfunc(); | |
} | |
//Arguably worse. | |
echo @bad()."\n"; | |
//This bit's fine, but too late. | |
function good() { | |
return "Foo"; | |
} | |
echo @good()."\n"; | |
?>Bar... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Outputs NOTHING.
Logs NOTHING.