pub fn emalloc(layout: Layout) -> *mut u8Expand description
Uses the PHP memory allocator to allocate request-bound memory.
The Zend allocator only guarantees ZEND_MM_ALIGNMENT (8 bytes) and has
no aligned-allocation entry point, so a layout requesting a stricter
alignment cannot be honoured and yields a null pointer.
§Parameters
layout- The layout of the requested memory.
§Returns
A pointer to the memory allocated, or null if layout.align() exceeds
ZEND_MM_ALIGNMENT.