Testing with php 5.3 with WAMP & XAMPP Servers

General discussion about AlegroCart - Post here if you can't find another suitable forum
Post Reply
User avatar
Brent
Site Admin
Posts: 4400
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Testing with php 5.3 with WAMP & XAMPP Servers

Post by Brent » Tue Mar 23, 2010 7:45 am

I would suggest you turn off the error reporting E_DEPRECATED.

I am working to find any depreciated functions, most notably regex functions.
As there are probably no productions servers running 5.3, this will not be a problem.
The AlegroCart Demo works fine on a productions server.

In php.ini, find the following line, about line 514. comment out with semi-colon ;

Code: Select all

;error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED


add this line below

Code: Select all

error_reporting = E_ALL & ~E_NOTICE

This turns off the deprecated notice for now.

You can also replace

Code: Select all

error_reporting(E_ALL);

in index.php and admin/index.php with:

Code: Select all

if (phpversion() >= '5.3'){
error_reporting(E_ALL ^ E_DEPRECATED);
} else {
error_reporting(E_ALL);
}

That will achieve the same results.

tomsawyer
Posts: 1
Joined: Sun May 13, 2012 2:57 am

Re: Testing with php 5.3 with WAMP & XAMPP Servers

Post by tomsawyer » Sun May 13, 2012 3:07 am

Nice post & i get so much important information :-)

Bluesplayer
Posts: 152
Joined: Sun Jan 06, 2013 3:03 pm

Re: Testing with php 5.3 with WAMP & XAMPP Servers

Post by Bluesplayer » Fri Jan 18, 2013 7:06 am

I am actually running my shop on a home server setup - Ubuntu Server.

Home servers are the dogs b******* as far as I am concerned. With the power of home broadband now you can save a fortune on hosting fees.
apet4life.co.uk

Post Reply