Forums / Contribution-Writing Guidelines / Checking Contributions for PHP 5.3 Compatibility

Checking Contributions for PHP 5.3 Compatibility

Locked

Views: 2,530

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
29 Jun 2010, 3:29 PM
#1
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,724
Plugin Contributions:
56

Checking Contributions for PHP 5.3 Compatibility

You may have noticed the new dropdown box on the Contribution Add/Update page which asks about PHP 5.3 compatibility.

To determine whether your contribution is compatible, you need to check for the use of functions which are deprecated in PHP 5.3; here's a list:

http://php.net/manual/en/migration53.deprecated.php

The most likely offenders are:

  • split/spliti
  • ereg/ereg_replace/eregi/eregi_replace

If you can write your code in such a way as to not use these deprecated functions, users will have an easier time when their hoster upgrades. Thank you!

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.