Thread: Php 7

Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Jul 2006
    Posts
    17
    Plugin Contributions
    0

    help question Php 7

    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?

  2. #2
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Php 7

    Quote Originally Posted by cstdenis View Post
    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:

    Version

    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)
    It looks like PHP v7 won't be included until after ZC 1.5.5
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Php 7

    Quote Originally Posted by cstdenis View Post
    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?
    Good point.

    I have PHP 7 in my PHP selector on the server, if I get some time I might install a vanilla ZC 1.5.4 or 1.5.5 (alpha/beta whatever) and try to run it under PHP 7.

  4. #4
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Php 7

    Quote Originally Posted by frank18 View Post
    Good point.

    I have PHP 7 in my PHP selector on the server, if I get some time I might install a vanilla ZC 1.5.4 or 1.5.5 (alpha/beta whatever) and try to run it under PHP 7.
    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.

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,956
    Plugin Contributions
    96

    Default Re: Php 7

    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
    Code:
    class my_class {
      function my_class { ...
      }
    
      ...
    }
    will require recoding to use the following format:
    Code:
    class my_class {
      function __construct { ...
      }
    
      ...
    }

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Php 7

    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.

  7. #7
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Php 7

    Quote Originally Posted by DrByte View Post
    Zen Cart v1.5.5 is PHP7 compatible: https://www.zen-cart.com/showthread....5-5-and-v1-6-0


  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,537
    Plugin Contributions
    127

    Default Re: Php 7

    Quote Originally Posted by lat9 View Post
    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.
    This is just a warning in PHP7 though right? I'm sure you can disable the warning until these things are fixed in the base, in mods, etc.
    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.

  9. #9
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Php 7

    Quote Originally Posted by swguy View Post
    This is just a warning in PHP7 though right? I'm sure you can disable the warning until these things are fixed in the base, in mods, etc.
    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...

  10. #10
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,956
    Plugin Contributions
    96

    Default Re: Php 7

    Quote Originally Posted by swguy View Post
    This is just a warning in PHP7 though right? I'm sure you can disable the warning until these things are fixed in the base, in mods, etc.
    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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 application/x-httpd-php html_header.php PHP script text
    By Parafanaylya in forum General Questions
    Replies: 3
    Last Post: 29 Aug 2015, 03:06 PM
  2. Replies: 4
    Last Post: 17 Jul 2015, 04:44 AM
  3. v151 Incorrect Error 406 from application_top.php in some PHP configurations
    By steele in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 24 Nov 2012, 05:08 AM
  4. Linking Page_2.php, Page_3.php, Page_4.php In Footer
    By gws76 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 May 2007, 10:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg