[wp-trac] [WordPress Trac] #49329: memory_limit in site health is not really correct, value is taken from wp_raise_memory_limit
WordPress Trac
noreply at wordpress.org
Fri May 15 17:01:44 UTC 2020
#49329: memory_limit in site health is not really correct, value is taken from
wp_raise_memory_limit
--------------------------+-----------------------------
Reporter: espiat | Owner: SergeyBiryukov
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.5
Component: Site Health | Version: 5.3.2
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: administration
--------------------------+-----------------------------
Comment (by SergeyBiryukov):
Replying to [comment:17 zodiac1978]:
> > I'm on a hoster with 128M PHP memory limit. In Site Health it shows at
the moment as 256M, because of this bug. Unfortunately you can *set* this
higher limit without any errors, although the available memory is still
128M.
>
> Although my *real* memory limit is 128M, WordPress will show as the
second value now *always* as 256M. No matter what the server is having as
a real limit. This is confusing IMHO.
Thanks for bringing that up! That seems weird though, I don't think
`ini_set( 'memory_limit', '256M' )` is supposed to succeed if the value is
not really changeable.
On most environments, `ini_get( 'memory_limit' )` would return the correct
memory limit. If it returns incorrect value in some particular
environments, then it looks like there's no way for us to get the correct
one?
Displaying just the original value would also be misleading, because
that's not the current value for admin screens for most environments.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49329#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list