php problems

Frank Leonhardt frank2 at
Tue Aug 6 12:17:26 UTC 2013

On 06/08/2013 15:21, Lars Eighner wrote:
> On Mon, 5 Aug 2013, Mark Moellering wrote:
>> I tried a simple "hello world" type program
>> the actual code is :
>> <?php
>> echo "test"
>> ?>
>> and the output was;
>> testsegmentation fault
> First, try it with clean code: put the ; after the command and stop 
> closing
> the <?php tag at the end of the file.

Actually that should work and does work. I'm in the happy position of 
being able to recreate (but without the fault):

%php test.php
%php --version
PHP 5.3.6 with Suhosin-Patch (cli) (built: Jul 27 2011 20:41:21)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
%uname -v
FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 
root at
%cat test.php
echo "test"

%php test.php

So what you're should doing should work. I should try recompiling and 
reinstalling PHP as a first step, unless you have reasons you don't want 
to do that. Email me directly if you want to cross-check config files 
and so on on what may be a very similar environment.

Regards, Frank.

More information about the freebsd-questions mailing list