Re: pspell tweak.

From: Date: Wed, 13 Aug 2008 22:06:52 +0000
Subject: Re: pspell tweak.
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-39932@lists.php.net to get a copy of this message
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.

« previous php.internals (#39932) next »