Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15892 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51792 invoked by uid 1010); 7 Apr 2005 13:42:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 51775 invoked from network); 7 Apr 2005 13:42:59 -0000 Received: from unknown (HELO host315.ipowerweb.com) (127.0.0.1) by localhost with SMTP; 7 Apr 2005 13:42:59 -0000 X-Host-Fingerprint: 82.94.239.5 unknown Linux 2.5 (sometimes 2.4) (4) Received: from ([82.94.239.5:33359] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 0B/0B-19272-0E835524 for ; Thu, 07 Apr 2005 09:42:57 -0400 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j37Di3LG011765 for ; Thu, 7 Apr 2005 15:44:03 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j37Di1QH011752; Thu, 7 Apr 2005 15:44:01 +0200 Date: Thu, 7 Apr 2005 15:42:51 +0200 (CEST) X-X-Sender: derick@localhost To: Andi Gutmans cc: =?utf-8?Q?Marcus_B=F6rger?= , PHP Developers Mailing List , =?utf-8?Q?B=E5rd_Farsted?= Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jci-ict.nl Subject: #if ZEND_ALLOC 0 patch From: derick@php.net (Derick Rethans) 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