﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
14889	Memory Comparison Broken / WordPress Memory Limit	hakre	nacin	"WordPress falsely assume that PHP memory limit values can be normalized as an integer value and then compared to each other:

{{{
	// set memory limits.
	if ( function_exists('memory_get_usage') && ( (int) @ini_get('memory_limit') < abs(intval(WP_MEMORY_LIMIT)) ) )
		@ini_set('memory_limit', WP_MEMORY_LIMIT);
}}}

/wp-includes/default-constants.php line 37

With a memory-limit setting of one gigabyte ('1G') to give an example, wordpress will reduce this to 32 Megabyte (Single Site) or 64 Megabyte (Multisite).

PHP Memory Values are often used with the shorthand notation [http://www.php.net/manual/en/faq.using.php#faq.using.shorthandbytes as documented]."	defect (bug)	closed	normal	3.5	General	3.0	normal	fixed	has-patch commit	gaarai@…
