• 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())

    http://wordpress.org/plugins/redirect-list/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author MembershipWorks

    (@sourcefound)

    Great catch, I’ll rewrite the plugin to not use strstr for v1.3

    sffandom

    (@sffandom)

    Do you have an idea of how long it will be before you release version 1.3? I’m getting some funky errors (including this one) and I think they are all related to this plugin.

    Plugin Author MembershipWorks

    (@sourcefound)

    Just uploaded version 1.3! The offending strstr() function call that is not supported prior to PHP 5.3 has been re-written.

    Plugin Author MembershipWorks

    (@sourcefound)

    Issue fixed

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP Version check’ is closed to new replies.