Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27896 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98604 invoked by uid 1010); 7 Feb 2007 20:33:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 98589 invoked from network); 7 Feb 2007 20:33:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Feb 2007 20:33:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=antony@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=antony@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: antony@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:47659] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 22/02-18288-8A73AC54 for ; Wed, 07 Feb 2007 15:33:45 -0500 Received: (qmail 31725 invoked from network); 7 Feb 2007 20:32:02 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 7 Feb 2007 20:32:02 -0000 Message-ID: <45CA37A2.5000103@zend.com> Date: Wed, 07 Feb 2007 23:33:38 +0300 User-Agent: Thunderbird 2.0b2 (X11/20070116) MIME-Version: 1.0 To: Chris Malton CC: internals@lists.php.net 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> In-Reply-To: <0C.C0.18288.9F33AC54@pb1.pair.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] segfault when running strpos (was header)! From: antony@zend.com (Antony Dovgal) 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? -- Wbr, Antony Dovgal