-
-
Save dgierejkiewicz/a6e023c60bc538f0b1b805ecc431844a to your computer and use it in GitHub Desktop.
This file contains 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 | |
register_tick_function(function() { | |
static $i = 0; | |
if (++$i >= 100000) { | |
throw new Exception('Too many ticks!'); | |
} | |
}); | |
declare(ticks=1) { | |
while (true) { } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment