Antony Dovgal wrote:
> 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.
>
Please see below for a term session:
[EMAIL PROTECTED]:~/php6# cat /srv/www/include/firefox.inc
<?php
//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();
}
//}
?>
[EMAIL PROTECTED]:~/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?
Chris
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php