# zend_mm_set_heap()

- Thread: https://externals.io/message/29002
- Original archive: https://news-web.php.net/php.internals/29002
- Started by Brian Shire on 2007-04-24T21:22:19+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #29002 — Brian Shire — 2007-04-24T21:22:19+00:00

URL: https://externals.io/message/29002#29002

It seems like zend_mm_set_heap() isn't very useful outside  
zend_alloc.c because the zend_mm_heap structure definition is within  
the zend_alloc.c file rather than zend_alloc.h.  Could we move the AG 
() and associated structures to the header file, or perhaps I missed  
something?

- Shire
     shire@facebook.com
     shire@php.net

---

## #29010 — Dmitry Stogov — 2007-04-25T07:01:34+00:00

URL: https://externals.io/message/29002#29010 · In reply to: #29002

You probably missed.
This function can be used to substitute main PHP heap, so all emalloc()
function will work with new one.

Thanks. Dmitry.

> -----Original Message-----
> From: Brian Shire [mailto:shire@facebook.com] 
> Sent: Wednesday, April 25, 2007 1:22 AM
> To: PHP internals
> Subject: [PHP-DEV] zend_mm_set_heap()
> 
> 
> 
> It seems like zend_mm_set_heap() isn't very useful outside  
> zend_alloc.c because the zend_mm_heap structure definition is within  
> the zend_alloc.c file rather than zend_alloc.h.  Could we move the AG 
> () and associated structures to the header file, or perhaps I missed  
> something?
> 
> - Shire
>      shire@facebook.com
>      shire@php.net
