Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3486 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92224 invoked from network); 19 Jul 2003 03:55:45 -0000 Received: from unknown (HELO vckyb2.nw.wakwak.com) (211.9.230.145) by pb1.pair.com with SMTP; 19 Jul 2003 03:55:45 -0000 Received: from at.wakwak.com (at.wakwak.com [211.9.230.135:25]) by vckyb2.nw.wakwak.com (Postfix) with ESMTP id 871CD40032; Sat, 19 Jul 2003 12:55:44 +0900 (JST) Received: from at.wakwak.com (z16.220-213-33.ppp.wakwak.ne.jp [220.213.33.16]) by at.wakwak.com (8.12.9/8.12.9/2003-06-03) with SMTP id h6J3thdO031308; Sat, 19 Jul 2003 12:55:44 +0900 (JST) (envelope-from moriyoshi@at.wakwak.com) Date: Sat, 19 Jul 2003 12:58:19 +0900 X-Mailer: EdMax Ver2.85.3F MIME-Version: 1.0 To: "NAIK,ROSHAN (HP-Cupertino,ex1)" Cc: internals@lists.php.net Message-ID: <20030719125819_jrxNs@at.wakwak.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit In-Reply-To: <123E41AA62E54346A34828E6646156735FDB32@xsun03.ptp.hp.com> References: <123E41AA62E54346A34828E6646156735FDB32@xsun03.ptp.hp.com> Subject: Re: [PHP-DEV] PHP thread stack problem on HPUX From: moriyoshi@at.wakwak.com (Moriyoshi Koizumi) Possibly better one (not tested): Index: Zend/zend.h =================================================================== RCS file: /repository/ZendEngine2/zend.h,v retrieving revision 1.210 diff -u -r1.210 zend.h --- Zend/zend.h 10 Jun 2003 20:03:24 -0000 1.210 +++ Zend/zend.h 19 Jul 2003 03:54:19 -0000 @@ -146,7 +146,7 @@ # endif #endif -#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32)) && !(defined(ZTS) && defined(NETWARE)) +#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32)) && !(defined(ZTS) && defined(NETWARE)) && !defined(HPUX) # define do_alloca(p) alloca(p) # define free_alloca(p) #else Moriyoshi "NAIK,ROSHAN (HP-Cupertino,ex1)" wrote: > > Solution: > Allocate from the heap, and take the performance hit. > > > ******************************** > <<< file 1: zend_execute.c > >>> file 2: fixed_zend_execute.c > ******************************** > -----[1015 changed to 1015]----- > < EX(Ts) = (temp_variable *) > do_alloca(sizeof(temp_variable)*op_array->T); > --- > > EX(Ts) = (temp_variable *) > emalloc(sizeof(temp_variable)*op_array->T); > -----[1711 changed to 1711]----- > < free_alloca(EX(Ts)); > --- > > efree(EX(Ts));