Warning: strpos() [function.strpos]: Empty delimiter
<p>I have a plugin that uses strpos() method and on one site I'm getting this error</p>

<pre><code>Warning: strpos() [function.strpos]: Empty delimiter. in /home/mysite/public_html/wp-includes/compat.php on line 55
</code></pre>

<p>Any ideas what the likely cause of this could be?</p>

<p>excerpt from compat.php</p>

<pre><code>if (!function_exists('stripos')) {
function stripos($haystack, $needle, $offset = 0) {
    return strpos(strtolower($haystack), strtolower($needle), $offset);
}
}
</code></pre>

<p>My code...</p>

<pre><code>function myFunction($thePost)
    {
        $theContent = $thePost-&gt;post_content;
        $myVar1 = array();
        preg_match_all('/&lt;a\s[^&gt;]*href=\"([^\"]*)\"[^&gt;]*&gt;(.*)&lt;\/a&gt;/siU',$theContent,$myVar1);
        $myVar2 = 0;
        foreach ($myVar1[1] as $myVar3)
        {
            $myVar4 = $myVar1[2][$myVar2];
            $myVar5 = FALSE;
            $myVar6 = get_bloginfo('wpurl');
            $myVar7 = str_replace('http://www.','',$myVar3);
            $myVar7 = str_replace('http://','',$myVar7);
            $myVar8 = str_replace('http://www.','',$myVar6);
            $myVar8 = str_replace('http://','',$myVar8);
            if (strpos($myVar3,'http://')!==0 || strpos($myVar7,$myVar8)===0) return TRUE;
            $myVar2++;
        }
        return FALSE;
    }
</code></pre>
