Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Aug 2013 13:00:40 +0100
From:      Frank Leonhardt <frank2@fjl.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: php problems
Message-ID:  <5200E568.8030307@fjl.co.uk>
In-Reply-To: <alpine.BSF.2.00.1308060919130.71557@abbf.ynefrvtuareubzr.pbz>
References:  <52006E74.9080905@msen.com> <alpine.BSF.2.00.1308060919130.71557@abbf.ynefrvtuareubzr.pbz>

next in thread | previous in thread | raw e-mail | index | archive | help
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
test
%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@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
%cat test.php
<?php
echo "test"
?>

%php test.php
test
%

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.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5200E568.8030307>