With php 7 about to be released, anybody known what Zen Cart's compatibility with it is? I'd love to take advantage of it's new performance boost.
Will 1.5.4 work under php 7, or do we need to wait for 1.5.5?
With php 7 about to be released, anybody known what Zen Cart's compatibility with it is? I'd love to take advantage of it's new performance boost.
Will 1.5.4 work under php 7, or do we need to wait for 1.5.5?
Based on the server requirements page:
It looks like PHP v7 won't be included until after ZC 1.5.5Version
Zen Cart v1.2.x through v1.3.6 are compatible with PHP 4.3.2 - 4.4.x. They are NOT compatible with PHP 5.
Zen Cart v1.3.7-v1.3.8a are compatible with PHP 4.3.2 through PHP 5.2.x, but *not* PHP 5.3.
Zen Cart v1.3.9 series is compatible with PHP 5.2.10 thru PHP 5.3.x.
Zen Cart v1.5.0 is compatible with PHP 5.2.14 thru PHP 5.3.x. Requires patches to work with PHP 5.4, and upgrading is a better idea.
Zen Cart v1.5.1 is compatible with PHP 5.2.14 thru PHP 5.3.x. Requires some patches to work with PHP 5.4, and upgrading is a better idea.
(* NOTE: v1.5.2, v1.5.3 may technically work with as low as 5.2.14 but will be less secure, so should use PHP 5.3.7 or greater.)
Zen Cart v1.5.2 is compatible with PHP 5.3.7* thru PHP 5.6
Zen Cart v1.5.3 is compatible with PHP 5.3.7* thru PHP 5.6
.
Zen Cart v1.5.4 is designed for PHP 5.5 and PHP 5.6 (and is compatible with PHP 5.3.7* and PHP 5.4 if really necessary, with some bugfix patches applied)
.
Zen Cart v1.5.5 is designed for PHP 5.5 and PHP 5.6 (optionally as far back as PHP 5.3.7* if really necessary for temporary upgrading purposes)
The following is in-development and not officially released yet. Details subject to change:
Zen Cart v1.6.0 is designed for PHP 5.6 and PHP 7 (but is expected to be compatible with PHP 5.4.2+ and PHP 5.5 too)
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Just installed a vanilla ZC 1.5.4 with demo products on PHP Version 7.0.0RC7, server LiteSpeed V6.8 .
Had no issues at all (other than mucking up my DB password) - the installation ran smooth-as and the store loads fast.
As you can see from above, the PHP version is an RC and no official release.
Anyway, so far so good.
One of the "big" changes that will be required for PHP 7 is due to the deprecation (i.e. removal of support) of PHP-4-style class-constructor naming.
That is, a PHP class that uses the following format for its initialization
will require recoding to use the following format:Code:class my_class { function my_class { ... } ... }
Code:class my_class { function __construct { ... } ... }
Zen Cart v1.5.5 is PHP7 compatible: https://www.zen-cart.com/showthread....5-5-and-v1-6-0
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Emits E_DEPRECATED when encountered, which generally speaking would be a warning, yes. Conditions would be if no __construct() exists, then E_DEPRECATED, if __construct() exists but after a function of the same name as the class (previous constructor method) then also E_DEPRECATED. If __construct() exists before a function of the same name, then the first function is treated as the constructor, the second function is treated as a normal method... There are some other details involved, but the above was basically captured from: https://wiki.php.net/rfc/remove_php4_constructors
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
It's "just a warning" that will fill your /logs folder with debug-log files until the issue(s) are corrected, especially if the class-file is included on each page-load.
You can't disable just that PHP warning and I don't suggest disabling warnings in general as they tend to be predictors of bad things to come!