mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Increase memory limit when unzipping. fixes #8149
git-svn-id: http://svn.automattic.com/wordpress/trunk@9612 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1b84d8e087
commit
998dfc44e4
@ -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…
x
Reference in New Issue
Block a user