Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2008
    Posts
    43
    Plugin Contributions
    0

    Default Zen-Cart 1.3.8a PHP5.3 ereg after patch

    Hello,

    Our host is moving to PHP 5.3 soon, so I installed the PHP 5.3 patch that's been made available.

    We'll be upgrading when 1.5.0 comes out of beta, but since that's not out yet, and it'll take some time to move everything to 1.5, we need a functioning store in the meantime.

    On my local testserver running PHP 5.3, everything seems to work well.

    However, I've done a search for ereg_replace in the zen-cart files. and there are still references to it in several files, like functions_email.php and functions_lookups.php, for example.

    Are these going to cause problems in certain situations that I've not run into in testing yet, or did the PHP 5.3 patch somehow do some fix-work for that too?

    Thanks and kind regards,
    Wouter

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Zen-Cart 1.3.8a PHP5.3 ereg after patch

    The "patch" simply suppresses the warnings about "deprecated function calls". It does not change the actual code, which will work fine. So, no, if you're still using v1.3.8 then you'll still see ereg() calls in the code.

    You should be WAY MORE concerned about the security vulnerabilities that are in 1.3.8 than about ereg issues.
    .

    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.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Zen-Cart 1.3.8a PHP5.3 ereg after patch

    Quote Originally Posted by Diavire View Post
    We'll be upgrading when 1.5.0 comes out of beta, but since that's not out yet, and it'll take some time to move everything to 1.5, we need a functioning store in the meantime.
    As for your 1.5 upgrade, you should START that process now. There will be very few changes to the final release code vs the existing RC2 code that's presently posted.
    .

    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.

  4. #4
    Join Date
    Jan 2008
    Posts
    43
    Plugin Contributions
    0

    Default Re: Zen-Cart 1.3.8a PHP5.3 ereg after patch

    Quote Originally Posted by DrByte View Post
    The "patch" simply suppresses the warnings about "deprecated function calls". It does not change the actual code, which will work fine. So, no, if you're still using v1.3.8 then you'll still see ereg() calls in the code.

    You should be WAY MORE concerned about the security vulnerabilities that are in 1.3.8 than about ereg issues.
    Thanks for the clarification.

    I am, naturally, all security patches are installed however, I take it that hardens the install up a bit, or are there other known issues that haven't been patched?

    Quote Originally Posted by DrByte View Post
    As for your 1.5 upgrade, you should START that process now. There will be very few changes to the final release code vs the existing RC2 code that's presently posted.
    I understand that's the optimum (and in your eyes probably only) way to go now, but as it is, with the holidays and us being a brick and mortar store as well, and the site being only one of my responsibilities, there just aren't enough hours in the day to start right away. Literally ASAP though.

    One more thing I was wondering about the upgrade to 1.5.0:

    Will extra fields in the database pose a problem with the database upgrade? Like an exta table, or a field added to an existing table (or in our case, multiple of both).

    Thanks for your time.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Zen-Cart 1.3.8a PHP5.3 ereg after patch

    Quote Originally Posted by Diavire View Post
    One more thing I was wondering about the upgrade to 1.5.0:

    Will extra fields in the database pose a problem with the database upgrade? Like an exta table, or a field added to an existing table (or in our case, multiple of both).
    Not a problem. If you follow the recommended process, then the zc_install database-upgrade step will simply massage the pieces that are normally there, leaving everything else alone. The only time it would have a problem is if you removed core components from the database ... which is very unusual/unlikely.
    .

    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.

  6. #6
    Join Date
    Jan 2008
    Posts
    43
    Plugin Contributions
    0

    Default Re: Zen-Cart 1.3.8a PHP5.3 ereg after patch

    Quote Originally Posted by DrByte View Post
    Not a problem. If you follow the recommended process, then the zc_install database-upgrade step will simply massage the pieces that are normally there, leaving everything else alone. The only time it would have a problem is if you removed core components from the database ... which is very unusual/unlikely.
    Thanks much for the enlightenment.

    Now just to be sure, 1.3.8a, with it's noted patches, still has XSS vulnerabilities for the admin, but no SQL injection problems, if I understand correctly?

 

 

Similar Threads

  1. v151 Convert osC Payment module Atos for PHP5.3 into Zen cart - Need Help
    By xav2 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 2 Dec 2013, 09:18 AM
  2. v151 PHP5.4 and Zen Cart 1.5.x?
    By terraGirl in forum General Questions
    Replies: 5
    Last Post: 19 Sep 2013, 09:58 AM
  3. Does Zen-Cart run on php5?
    By jgkiefer in forum General Questions
    Replies: 1
    Last Post: 31 Mar 2008, 05:55 PM
  4. Zen Cart 1.3.0.2 and PHP5
    By ajcannon in forum General Questions
    Replies: 2
    Last Post: 12 Oct 2007, 02:45 AM

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