Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27898 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12847 invoked by uid 1010); 7 Feb 2007 21:04:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 12832 invoked from network); 7 Feb 2007 21:04:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Feb 2007 21:04:32 -0000 X-Host-Fingerprint: 84.64.166.162 user-5440a6a2.wfd76a.dsl.pol.co.uk Received: from [84.64.166.162] ([84.64.166.162:9742] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 79/B3-18288-0EE3AC54 for ; Wed, 07 Feb 2007 16:04:32 -0500 Message-ID: <79.B3.18288.0EE3AC54@pb1.pair.com> To: internals@lists.php.net Date: Wed, 07 Feb 2007 21:03:16 +0000 User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 References: <11.CC.18288.3462AC54@pb1.pair.com> <45CA29B3.7020705@zend.com> <45CA2B81.30600@cjsoftuk.dyndns.org> <45CA2F38.3070106@zend.com> <0C.C0.18288.9F33AC54@pb1.pair.com> <45CA37A2.5000103@zend.com> In-Reply-To: <45CA37A2.5000103@zend.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Posted-By: 84.64.166.162 Subject: Re: [PHP-DEV] segfault when running strpos (was header)! From: chrism@cjsoftuk.dyndns.org (Chris Malton) Antony Dovgal wrote: > On 02/07/2007 11:16 PM, Chris Malton wrote: >> Please see below for a term session: >> >> root@SERVER:~/php6# cat /srv/www/include/firefox.inc >> > //if($_GET["ffcheck"]==""){ >> //$ua=$_SERVER['HTTP_USER_AGENT']; >> if(strpos($ua,"MSIE")!==false){ >> //USER AGENT = MSIE! >> header("Location: http://shared.cjsoftuk.dyndns.org/Firefox.php?URL=" >> . urlencode("http://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] >> . "?" . $_SERVER["QUERY_STRING"])); >> exit(); >> } >> //} >> ?> >> root@SERVER:~/php6# php6 /srv/www/include/firefox.inc >> Segmentation fault >> >> (I know I shouldn't be root, but anyway it's over LAN). >> >> See my point? > > Still no segfault. Valgrind says "0 errors from 0 contexts". > Try clean build using fresh CVS snapshot/checkout? > You're right, I'm using my bad practises again (cvs update && make)! Seems to work with a reconfigure etc. Looks like something OTHER than the C code changed. I did get a lot of warnings during compiling this time though. Seems to work well otherwise. Chris