From owner-freebsd-questions@FreeBSD.ORG Tue Aug 6 12:12:31 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id DABB645C for ; Tue, 6 Aug 2013 12:12:30 +0000 (UTC) (envelope-from freebsd-doc@fjl.co.uk) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8AAD62B10 for ; Tue, 6 Aug 2013 12:12:29 +0000 (UTC) Received: from [192.168.1.35] (mux.fjl.org.uk [62.3.120.246]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id r76CCQ4k032409 (version=TLSv1/SSLv3 cipher=DHE-DSS-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 6 Aug 2013 13:12:26 +0100 (BST) (envelope-from freebsd-doc@fjl.co.uk) Message-ID: <5200E82C.80306@fjl.co.uk> Date: Tue, 06 Aug 2013 13:12:28 +0100 From: Frank Leonhardt User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: php problems References: <52006E74.9080905@msen.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Aug 2013 12:12:31 -0000 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 : >> > echo "test" >> ?> >> and the output was; >> >> testsegmentation fault > > First, try it with clean code: put the ; after the command and stop > closing > the 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 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.