Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- xmlrpc_tick('start');
- declare(ticks=10000);
- register_tick_function('xmlrpc_tick');
- function xmlrpc_tick($str = '') {
- $duration = microtime(true) - EXECUTION_START_TIME;
- if ($duration > MAX_EXECUTION_TIME)
- throw new Exception("Execution timeout", 504);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement