View Single Post
  #3  
Old 02-21-2025, 03:00 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 761
 

Default Re: X-Cart Classic module PHP compatibility

There are 3 options to consider:


1. In case all old stores have applied the PHP 7.x patches, I should provide module code compatible with PHP 7.x from the beginning.

2. If on the other hand, not all stores have applied the PHP 7.x patches, I guess I should provide distribution packs with code compatible with the old versions of PHP that the x-cart store was compatible with, when it's version was released AND additional module patches for PHP 7.x compatibility to be applied after the module is installed, in case the store has applied the PHP patches.

3. Or, just add conditional code in the distribution packs that checks for PHP version of the running store and runs alternative code accordingly (i.e., without any patches - just the distribution pack with the conditional code).


What option would be the most realistic to follow?
__________________
Vasilis Vrontisis
X-Cart Development, Maintenance & Customization
https://[URL="http://www.craftforweb.com"]craftforweb.com[/url]
vasilis@craftforweb.com
Reply With Quote