#if ZEND_ALLOC 0 patch
| From: | Derick Rethans | Date: | Thu, 07 Apr 2005 13:42:51 +0000 |
| Subject: | #if ZEND_ALLOC 0 patch | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-15892@lists.php.net to get a copy of this message | ||
Hello Andi,
the following patch fixes issues when ZEND_ALLOC is set to 0 (to be able
to debug memory related issues in / with the engine):
http://files.derickrethans.nl/patches/zend-alloc-strndup-20050407.patch
This is because estrdup needs to allocate one more byte than the length
and you can't do that differently with strdup. I'd like to commit this
patch to all branches.
regards,
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org