Thread: php 5.2 error
View Single Post
  #4  
Old 12-04-2012, 04:32 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 340,160
Hall of Famer is on a distinguished road
Default

I see, so there are more to it. Thought you only needed to get rid of the abstract class/interface method implementation and datetime object, looks like it is a pain to make this script compatible with PHP 5.2. I wish you good luck, if you can release a patch for Mys v1.3.2 compatible with older version of PHP I will appreciate.

Mys v1.3.2 indeed is somewhat of a rewrite over the old script, but the changes are still not great enough to classify it as a new major release like Mys v1.4.0. You do notice a significant increase in classes and objects being used, this is just the beginning. In fact, the design of Model classes such as User, Member and Private Message is pretty crappy, you most likely gonna witness a dramatic modification of these old classes in not so distant future. To think that the script prior to Mys v1.3.0 was completely procedural, I'd say this is already a huge improvement.


I believe its time to make use of the vast new features introduced by PHP 5.3. First of all, it is quite difficult to autoload classes in various directories without namespace. With Mys v1.4.0 adopting MVC architecture pattern, this is just inevitable. On the other hand PHP's DateTime object is too good to resist. I may also end up using some anonymous functions if I feel like doing it. There will still be about half a year till Mys v1.4.0 is available though, so you have time to prepare for the transition.

On the other hand, PHP 5.3 is indeed becoming much more common among webhosts. Many shared webhosts such as HostGator and Bluehost are already providing PHP 5.3 as an alternative choice, all you need to do is to edit something in the config file to use PHP 5.3 instead of the default PHP 5.2. Even freehost like 000webhost is going to support PHP 5.3 soon. It is about time to move forward.

The decision to drop support for PHP 5.2 in Mys v1.4.0 is final though, I've made up my mind a while ago and it is highly unlikely for me to ever consider changing it.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote