[wp-trac] Re: [WordPress Trac] #3141: explicit memory check before
starting install
WordPress Trac
wp-trac at lists.automattic.com
Sun Dec 30 22:48:46 GMT 2007
#3141: explicit memory check before starting install
-------------------------------------+--------------------------------------
Reporter: looksaus | Owner: ffemtcj
Type: defect | Status: assigned
Priority: normal | Milestone: 2.4
Component: Administration | Version: 2.1
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+--------------------------------------
Comment (by ffemtcj):
Replying to [comment:14 darkdragon]:
> ALso check to see if the memory limit is less than 32MB and then try to
set it. I believe WordPress has a function for getting the bytes from like
'8M', I forget where I found it.
Are you thinking something more like this:
{{{
if ( memory_get_usage() / 1024 < 32 ) {
@ini_set("memory_limit","32M");
}
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/3141#comment:18>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list