Re: segfault when running strpos (was header)!

From: Date: Wed, 07 Feb 2007 19:57:44 +0000
Subject: Re: segfault when running strpos (was header)!
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-27894@lists.php.net to get a copy of this message
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. <?php 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

« previous php.internals (#27894) next »