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.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to