public/js/filemanager/include/FtpClient.php
public function setPhpLimit($memory = null, $time_limit = 0, $ignore_user_abort = true)
    {
        if (null !== $memory) {
            ini_set('memory_limit', $memory);
        }

        ignore_user_abort(true);
        set_time_limit($time_limit);

        return $this;
    }
public function setPhpLimit($memory = null, $time_limit = 0, $ignore_user_abort = true)
    {
        if (null !== $memory) {
            ini_set('memory_limit', $memory);
        }

        ignore_user_abort(true);
        set_time_limit($time_limit);

        return $this;
    }
public function setPhpLimit ( $ memory = null , $ time_limit = 0 , $ ignore_user_abort = true ) { if ( null !== $ memory ) { ini_set ( 'memory_limit' , $ memory ) ; } ignore_user_abort ( true ) ; set_time_limit ( $ time_limit ) ; return $ this ; }
Overwrites the PHP limit

@param  string|null $memory            The memory limit, if null is not modified
@param  int         $time_limit        The max execution time, unlimited by default
@param  bool        $ignore_user_abort Ignore user abort, true by default
@return FtpClient
Overwrites the PHP limit