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 r...@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.


_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to