I've installed the latest release of php4 (as a standalone binary), on freeBSD 4.2-STABLE, and while it seems to work fine on the command line, it gives 'premature end of script headers' in the web logs when accessed via HTTP. I'm using apache1.3.19, but I don't think it's apache related, as I have the same probs with earlier versions of apache, and if I were to export SERVER_NAME etc, to imitate a webserver environ, and then run it from the commandline, it'll segfault.
It was suggested that maybe a library dependancy (eg mysql) could be causing it, so I compiled with the minimum of options (no databases, no graphics libs, etc) but it doesn't make any difference. Anybody got any ideas?
Thanks.