Title: PHP Version check
Last modified: August 21, 2016

---

# PHP Version check

 *  Resolved [mastak](https://wordpress.org/support/users/mastak/)
 * (@mastak)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-version-check/)
 * 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/](http://wordpress.org/plugins/redirect-list/)

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

 *  Plugin Author [MembershipWorks](https://wordpress.org/support/users/sourcefound/)
 * (@sourcefound)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-version-check/#post-3977378)
 * Great catch, I’ll rewrite the plugin to not use strstr for v1.3
 *  [sffandom](https://wordpress.org/support/users/sffandom/)
 * (@sffandom)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-version-check/#post-3977450)
 * 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](https://wordpress.org/support/users/sourcefound/)
 * (@sourcefound)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-version-check/#post-3977454)
 * 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](https://wordpress.org/support/users/sourcefound/)
 * (@sourcefound)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/php-version-check/#post-3977455)
 * Issue fixed

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/redirect-list.svg)
 * [Redirect List](https://wordpress.org/plugins/redirect-list/)
 * [Support Threads](https://wordpress.org/support/plugin/redirect-list/)
 * [Active Topics](https://wordpress.org/support/plugin/redirect-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirect-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirect-list/reviews/)

## Tags

 * [redirect](https://wordpress.org/support/topic-tag/redirect/)
 * [strstr()](https://wordpress.org/support/topic-tag/strstr/)

 * 4 replies
 * 3 participants
 * Last reply from: [MembershipWorks](https://wordpress.org/support/users/sourcefound/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/php-version-check/#post-3977455)
 * Status: resolved