Thanks Dmitry,
I think what I was going for (in a very poorly worded way) was that
I'm unable to access any of the heap structure values outside of
zend_alloc.c because that's where the definition resides.
For example something like the following should generate a compile
time error outside zend_alloc.c:
zend_mm_heap *heap;
heap->overflow=0;
I've attached a rough patch of what I did to make this accessible
outside zend_alloc.c.
-shire
On Apr 25, 2007, at 12:01 AM, Dmitry Stogov wrote:
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:[EMAIL PROTECTED]
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
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php