Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27894 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82330 invoked by uid 1010); 7 Feb 2007 19:57:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 82315 invoked from network); 7 Feb 2007 19:57:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Feb 2007 19:57:51 -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:33499] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/8F-18288-D3F2AC54 for ; Wed, 07 Feb 2007 14:57:51 -0500 Received: (qmail 22514 invoked from network); 7 Feb 2007 19:56:08 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 7 Feb 2007 19:56:08 -0000 Message-ID: <45CA2F38.3070106@zend.com> Date: Wed, 07 Feb 2007 22:57:44 +0300 User-Agent: Thunderbird 2.0b2 (X11/20070116) MIME-Version: 1.0 To: Chris CC: php-dev References: <11.CC.18288.3462AC54@pb1.pair.com> <45CA29B3.7020705@zend.com> <45CA2B81.30600@cjsoftuk.dyndns.org> In-Reply-To: <45CA2B81.30600@cjsoftuk.dyndns.org> 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 10:41 PM, Chris wrote: >>> Need any more info? Give me a buzz. >> >> A reproduce case? >> > > WHOOPS - Turns out it isn't header that breaks it! > > The following code breaks php6 at the cmd line. > > if($_GET["ffcheck"]==""){ > $ua=$_SERVER['HTTP_USER_AGENT']; > if(strpos($ua,"MSIE")!==false){ *segfaults HERE* > //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(); > } > } > ?> Could you please provide a short but complete reproduce case, so I can just copy/paste it and reproduce the problem. With this code I can see only "Notice: Undefined index: ffcheck in ..", but no segfault. Thank you. -- Wbr, Antony Dovgal