Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Will PHP 5 break my store?


Guest

Recommended Posts

Posted

I've found out, (through trying to use an add on that only works with PHP 5+) that I'm currently using PHP 4.4.9 on my host server, although the option is there to use PHP5. I would like to know if my store will work with PHP5 if I change to it. I'm using osC v2.2 RC 2a and I have a few security add ons too which I would not want to break.... Would it work, or would I have to make a hold load of script changes?

 

Also, for the future I suppose there might be a time when PHP4 is depreciated so we are forced to use PHP5 (unless oscV3 comes out before then :lol: )? So I guess it's best to know what to do.

 

Any feedback would be greatly appreciated.

Posted

Guess I should have looked harder in the forums :blush: I found a few posts which indicated that the latest version of osC works with PHP5. So I found out from my host how to upgrade and took the plunge...and everything seems fine :) As I can't seem to delete my previous post I thought I'd just add this in case any one else new to osC may be wondering the same thing.

Posted

Yes, 2.2 RC2a is quite happy with PHP 5, at least until your host hits 5.3. Then all hell breaks loose with deprecated "ereg family" function warnings. At least the fixes are well documented and easy to make. osC 3.0 will prereq PHP 5.3.

 

When you go to PHP 5, will your host also move you to MySQL 5? If you're not already at MySQL 5, there will be some fixes you need to make to avoid "1054" query errors.

Posted

Yes, 2.2 RC2a is quite happy with PHP 5, at least until your host hits 5.3. Then all hell breaks loose with deprecated "ereg family" function warnings. At least the fixes are well documented and easy to make. osC 3.0 will prereq PHP 5.3.

 

When you go to PHP 5, will your host also move you to MySQL 5? If you're not already at MySQL 5, there will be some fixes you need to make to avoid "1054" query errors.

 

Hi Phil, thanks very much for your feedback. Yes I checked and am currently using MySQL5, so there wasn't a problem. I bit the bullet and upgraded to PHP5 and everything was fine. But now you've got me concerned over 5.3 :lol: ! Do you know of a good place to find the necessary fixes and info on changes to make? I don't know of any upcoming changes to 5.3 with my host but I like to be prepared.... :)

Posted

This should give you enough information. Don't forget to check for similar fixes needed in custom or third party code.

http://www.oscommerce.com/forums/topic/341737-function-ereg-replace-is-deprecated/page__p__1434612__hl__eregi%20deprecated__fromsearch__1entry1447311

http://www.oscommerce.com/forums/topic/342525-page-script-error/page__p__1430745entry1430745

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

http://www.oscommerce.com/forums/topic/281009-contribution-oscthumb/page__view__findpost__p__1488216

 

If you are at 5.0 or higher (probably 4.4.9 or higher), these changes for 5.3 are downward compatible. In other words, you can make them while you're still on 4.4.9.

Posted

This should give you enough information. Don't forget to check for similar fixes needed in custom or third party code.

http://www.oscommerce.com/forums/topic/341737-function-ereg-replace-is-deprecated/page__p__1434612__hl__eregi%20deprecated__fromsearch__1entry1447311

http://www.oscommerce.com/forums/topic/342525-page-script-error/page__p__1430745entry1430745

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

http://www.oscommerce.com/forums/topic/281009-contribution-oscthumb/page__view__findpost__p__1488216

 

If you are at 5.0 or higher (probably 4.4.9 or higher), these changes for 5.3 are downward compatible. In other words, you can make them while you're still on 4.4.9.

 

Thanks very much for that MrPhil, very useful. Looking at the list of deprecated features on the php.net site makes me wonder how many php files one would have to go through to update... :blink: Then again, it probably looks worse than it actually might be (I hope :D). I might start taking a look at some files just to see...but not be well versed in php so it might leave me a bit stumped...

Posted

Dali,

 

This contribution has everything you need to upgrade RC2a to PHP 5.3 compatibility:

 

http://addons.oscommerce.com/info/7394

 

 

Chris

 

Thanks Dunweb :) I did run across that earlier today. My only concern however is that you have to use it on a fresh install, and then what happens if I want to use add ons (which you have to do for security etc.)? They may well not get updated so they will install over the newly corrected files...back to square one...

Posted

Dali,

 

The download contains step by step installation instructions in case you have a modified store already. It also contains Drop On Top files as well for new installations.

 

 

 

Chris

Posted

Dali,

 

The download contains step by step installation instructions in case you have a modified store already. It also contains Drop On Top files as well for new installations.

 

 

 

Chris

 

Thanks very much Chris for the info (and for making such an add on! :) I'll certainly be downloading it!:)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...