Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39932 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88188 invoked from network); 13 Aug 2008 22:07:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Aug 2008 22:07:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=oz@nixil.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=oz@nixil.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain nixil.net designates 161.58.222.1 as permitted sender) X-PHP-List-Original-Sender: oz@nixil.net X-Host-Fingerprint: 161.58.222.1 nixil.net FreeBSD 4.6-4.9 Received: from [161.58.222.1] ([161.58.222.1:3004] helo=nixil.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/A4-63398-C0B53A84 for ; Wed, 13 Aug 2008 18:07:09 -0400 Received: from demigorgon.corp.verio.net (fw.oremut02.us.wh.verio.net [198.65.168.24]) (authenticated bits=0) by nixil.net (8.13.6.20060614/8.13.6) with ESMTP id m7DM6qV6054071 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 13 Aug 2008 16:07:03 -0600 (MDT) Message-ID: <48A35AFC.7050900@nixil.net> Date: Wed, 13 Aug 2008 16:06:52 -0600 User-Agent: Thunderbird 2.0.0.14 (X11/20080623) MIME-Version: 1.0 To: Antony Dovgal CC: PHP Internals List References: <48A07CE7.7010404@nixil.net> <48A19790.20305@daylessday.org> <48A20148.5050902@nixil.net> <48A29724.2080705@daylessday.org> In-Reply-To: <48A29724.2080705@daylessday.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (nixil.net [161.58.222.1]); Wed, 13 Aug 2008 16:07:03 -0600 (MDT) X-Virus-Scanned: ClamAV 0.93.1/8028/Wed Aug 13 15:10:51 2008 on nixil.net X-Virus-Status: Clean Subject: Re: [PHP-DEV] pspell tweak. From: oz@nixil.net (Phil Oleson) Antony Dovgal wrote: > On 13.08.2008 01:31, Phil Oleson wrote: >> Thus the diff -u I sent in.. which resolves the above compiler failure >> with g++. > > Committed, thanks! > > Btw, how and why did you manage to get g++ compiling plain C code? > umm.. how? cd ext/pspell /usr/local/php5/bin/phpize env CC=g++ CFLAGS=-fuse-cxa-atexit ./configure --with-php-config=/usr/local/php5/bin/php-config make C++ is a superset of C thus any C code can be complied as C++ as long as it doesn't use any C++ reserved words. Plus, C++ has much stronger type checking and it is worth a run through at least occasionally to double checking that code is sane. as to why? well that is more complicated.. I'm mainly tilting at windmills.. but I've been trying to find a simpler resolution to my php setup crashing with a SEGFAULT when Zend Optimizer is installed and pspell is a shared extension. I'm starting to suspect it is something misbehaving in the Optimizer, but I need to organize my research before I present any theories publicly. -Phil.