The following error is reported in many places after ecshop2.7.3 is installed in the local PHP environment PHP5.4.
Redefining already defined constructor for class XXX
Check the code and find that the corresponding position is the constructor of a class. The specific statement is as follows:
/**
* Constructor
*
* @ Access public
* @ Param
*
* @ Return void
*/
Function alipay ()
{
}
Function _ construct ()
{
$ This-> alipay ();
}
Using the same point function name as the class name as the constructor is written in the php4 era, while the constructor in the php5 era is _ construct (). ecshop is compatible with older php versions, therefore, the above method is used.
However, starting from php5.4, for the simultaneous use of these two methods, it is required that the _ construct () is in front of the function with the same name, so you only need to call the positions of the two functions.