Created
August 19, 2011 11:35
-
-
Save YarekTyshchenko/1156620 to your computer and use it in GitHub Desktop.
Developer's Nightmare
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 | |
declare(ticks = 1); | |
function ReallyObscureFunctionName() | |
{ | |
if (!rand(0,1)%2) throw new Exception(); | |
} | |
register_tick_function('ReallyObscureFunctionName'); | |
// Dome benign code | |
$class = new stdClass(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment