• Resolved mastak

    (@mastak)


    I ran into a problem when I was using your plugin with PHP 5.2.*.
    You use the function strstr() in line 107 with 3 parameters, which is not supported before PHP Version 5.3.0.

    In line 107 you should use instead:
    $url = $uri;
    if($qry) {
    if (version_compare(PHP_VERSION, ‘5.3.0’) >= 0)
    $url=strstr($uri,’?’,true);
    else
    $url=substr($uri,0,$qry);
    }

    (Or just always substr())

    https://www.ads-software.com/plugins/redirect-list/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Version check’ is closed to new replies.