CS-Cart and php 5.3.0

Does anybody has CS-Cart 2.0.7 installed togheter with php 5.3.0

I just set-up a new webserver with latest version of php and apache and see some deprecated warnings like:

PHP Deprecated: Function split() is deprecated in /lib/xmldocument/xmldocument.php on line 162, referer: www.[domain].com/index.php?dispatch=checkout.cart

Does anyone know when CS-Cart will be php 5.3.0 compatible?

I have this problem to, my host is trying to work on it, strange thing nobody else complains about it…

I ran update on localhost with wamp server, 2.0.7 did not upgrade with latest php. So I have downloaded old release. Then after 2.1.x upgrade increased php version.

This MAY work. You (or your host) can install multiple versions of PHP and add the following line to the .htaccess file to specify the version of PHP to use:

To switch to PHP 4.4:

AddHandler application/x-httpd-php4 .php .php4 .php3

To switch to PHP 5.0:

AddHandler application/x-httpd-php5 .php .php5 .php4 .php3

To switch to PHP 5.1:

AddHandler application/x-httpd-php51 .php .php5 .php4 .php3

To switch to PHP 5.2:

AddHandler application/x-httpd-php52 .php .php5 .php4 .php3

To switch to PHP 5.3:

AddHandler application/x-httpd-php53 .php .php5 .php4 .php3

To switch to PHP 6.0:

AddHandler application/x-httpd-php6 .php .php5 .php4 .php3

To switch to the secure PHP 5.2 with Suhosin patch:

AddHandler application/x-httpd-php52s .php .php5 .php4 .php3

Keep in mind that you have to have the version(s) you want to use installed.

If your VPS supports it… My cent os does’nt like new php versions…

Easier to do what’s done in the config.local.php file

if (version_compare(PHP_VERSION, "5.3.0", ">=")) {
error_reporting(error_reporting() & ~E_DEPRECATED);

Not sure how far back this went, but it was in my 2.0.15 release.|

That makes sense, indeed…

My host did it for me and now it’s fixed, but unfortunatly I have no idea how he did it, because I see the config file exactly the same as always :rolleyes:

Fixed might be a loose term for this. Might be more accurate to say “no longer being reported”… :slight_smile:

Yap, that’s right :wink: but at least I can pretend everything is alright, isn’t that what everyone wants?! :roll: