Re: segfault when running strpos (was header)!

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

« previous php.internals (#27896) next »