Increase memory limit when unzipping. fixes #8149
git-svn-id: https://develop.svn.wordpress.org/trunk@9612 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2a99d513fc
commit
eb10add065
@ -469,6 +469,9 @@ function unzip_file($file, $to) {
|
||||
if ( ! $wp_filesystem || !is_object($wp_filesystem) )
|
||||
return new WP_Error('fs_unavailable', __('Could not access filesystem.'));
|
||||
|
||||
// Unzip uses a lot of memory
|
||||
@ini_set('memory_limit', '256M');
|
||||
|
||||
$fs =& $wp_filesystem;
|
||||
|
||||
require_once(ABSPATH . 'wp-admin/includes/class-pclzip.php');
|
||||
|
Loading…
Reference in New Issue
Block a user