在PHP内存错误中“已分配”的具体细节是什么

Note: There are a number of questions dealing with the "out of memory" error message, but I haven't seen an answer to the specifics of the "allocated" definition.

In any stat, you have to know what is being measured. What does "allocated" measure specifically?

My client's hosting package supposedly has 256MB of PHP memory, based on the php.ini setting. The webhost does allow up to 256MB.

Example: Fatal error: Out of memory (allocated 118489088) (tried to allocate 64 bytes) in /htdocs/www/wp-content/plugins/all-in-one-event-calendar/vendor/lessphp/lessc.inc.php on line 293

Does allocated mean the memory for all PHP functions or just for the particular process that is throwing the error?

The comment about PHP being one process was very helpful in finding an answer to this question. The confusing issue is that each new process load should have its own memory space. It turns out that PHP has a memory manager within itself that allocates memory to the individual processes on the site. The memory available to PHP is the amount the PHP memory manager has to work with.

http://php.net/manual/en/internals2.memory.php