Re: segfault when running strpos (was header)!
| From: | Chris Malton | Date: | Wed, 07 Feb 2007 21:03:16 +0000 |
| Subject: | Re: segfault when running strpos (was header)! | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-27898@lists.php.net to get a copy of this message | ||
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
>> <?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();
>> }
>> //}
>> ?>
>> 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