Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3487 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93632 invoked from network); 19 Jul 2003 07:19:31 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 19 Jul 2003 07:19:31 -0000 Received: (qmail 26978 invoked from network); 19 Jul 2003 07:19:29 -0000 Received: from localhost (HELO andi-home.zend.com) (127.0.0.1) by localhost with SMTP; 19 Jul 2003 07:19:29 -0000 Message-ID: <5.1.0.14.2.20030719102259.05f2de90@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sat, 19 Jul 2003 10:23:07 +0200 To: Moriyoshi Koizumi , "NAIK,ROSHAN (HP-Cupertino,ex1)" Cc: internals@lists.php.net In-Reply-To: <20030719125819_jrxNs@at.wakwak.com> References: <123E41AA62E54346A34828E6646156735FDB32@xsun03.ptp.hp.com> <123E41AA62E54346A34828E6646156735FDB32@xsun03.ptp.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] PHP thread stack problem on HPUX From: andi@zend.com (Andi Gutmans) I commited this patch. Andi At 12:58 PM 19/7/2003 +0900, Moriyoshi Koizumi wrote: >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)); > > > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php