[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/libs/ -> ScopedPHPTimeout.php (summary)

Expansion of the PHP execution time limit feature for a function call. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 84 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ScopedPHPTimeout:: (2 methods):
  __construct()
  __destruct()


Class: ScopedPHPTimeout  - X-Ref

Class to expand PHP execution time for a function call.
Use this when performing changes that should not be interrupted.

On construction, set_time_limit() is called and set to $seconds.
If the client aborts the connection, PHP will continue to run.
When the object goes out of scope, the timer is restarted, with
the original time limit minus the time the object existed.
__construct( $seconds )   X-Ref

param: $seconds integer

__destruct()   X-Ref
Restore the original timeout.
This does not account for the timer value on __construct().




Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1