Forums / General Questions / Upgrade to PHP 5.4

Upgrade to PHP 5.4

Views: 542

Results 1 to 2 of 2
14 Nov 2014, 2:17 AM
#1
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Upgrade to PHP 5.4

A client's host will be upgrading to PHP 5.4 next week. We will be upgrading to Zen Cart 1.5.3, but not before then. The only reference I can find for the needed patches for 1.5.1 to work with PHP 5.4 is here:
https://github.com/zencart/zencart/commit/274f4857062bd6df6cc73286272cb78fc86946c9

Is that an accurate and complete list?

Jim
Wheaton Website Services

14 Nov 2014, 11:56 AM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Upgrade to PHP 5.4

No, it is not complete. There is also a change I thinkit is in includes/classes/sessions.php where there is a check against the constant SID. There is an if statement followed by an assignment both with SID in it. The SID constant must be cast as a constant like: constant('SID') in both lines.

This change could be made in advance of the php 5.4 upgrade.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...