global $wgCommandLineMode;
$wgCommandLineMode = true;
umask( 000 );
- set_time_limit( 0 );
+ @set_time_limit( 0 );
}
function copyfile( $sdir, $name, $ddir, $perms = 0664 ) {
function readconsole( $prompt = '' ) {
static $isatty = null;
if ( is_null( $isatty ) ) {
- if ( !function_exists( 'posix_isatty' ) || posix_isatty( STDIN ) ) {
+ if ( !function_exists( 'posix_isatty' ) || posix_isatty( 0 /*STDIN*/ ) ) {
$isatty = true;
} else {
$isatty = false;