Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 47
  1. #11
    Join Date
    Nov 2006
    Posts
    30
    Plugin Contributions
    0

    Default Re: php 5.2.0 update problem

    Quote Originally Posted by DrByte View Post
    Yes, it is, on line 51 (as far as line 61 is concerned).
    Or the new PHP altered the behavior of the "global" statement so the value of $db is not passed into functions or got overwritten?

    I am poking around in the code...just baffled. Interesting...

  2. #12
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: php 5.2.0 update problem

    I just installed PHP 5.2.0 on a test windows machine running IIS, along with Zen Cart v1.3.6, and it works without any errors.
    .

    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. #13
    Join Date
    Jun 2006
    Posts
    19
    Plugin Contributions
    0

    Default Re: php 5.2.0 update problem

    I have found something interesting:

    http://drupal.org/node/61900

  4. #14
    Join Date
    Nov 2006
    Posts
    30
    Plugin Contributions
    0

    Default Re: php 5.2.0 update problem

    Quote Originally Posted by DrByte View Post
    I just installed PHP 5.2.0 on a test windows machine running IIS, along with Zen Cart v1.3.6, and it works without any errors.
    I have a little different setup:
    1) On CentOS 4.4
    2) Upgraded from Zencart 1.3.5.0.2 to v1.3.6. Worked all good with PHP 5.1.6

    Then I upgraded PHP to 5.2.0 and got this error.

  5. #15
    Join Date
    Jun 2006
    Posts
    19
    Plugin Contributions
    0

    Default Re: php 5.2.0 update problem

    SuSE 10.0 with kernel 2.6.x.y here.

  6. #16
    Join Date
    Nov 2006
    Posts
    30
    Plugin Contributions
    0

    Default Re: php 5.2.0 update problem

    Quote Originally Posted by ca18 View Post
    I have found something interesting:

    http://drupal.org/node/61900
    Hey DrByte, I think the above link likely addresses the same issue here. Look at the "Finally Tracked This Down" part and the "Problem Background" part:
    Finally Tracked This Down

    This is a bug PHP's behavior with global variables. I have a simplified test case which shows the problem in operation and offers a fix.

    This has been hard to resolve - this "login issue" can manifest itself from other bugs that involve session ID's and cookies. This is yet another issue.

  7. #17
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: php 5.2.0 update problem

    Looks similar. I don't see a resolution there that's of much use to anyone other than the PHP folks ...
    .

    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.

  8. #18
    Join Date
    Nov 2006
    Posts
    30
    Plugin Contributions
    0

    Default Re: php 5.2.0 update problem

    I put a var_dump($db) before line 61 in sessions.php and it printed NULL.

    The question is, why this global variable issue only affects the session code? Other zen-cart functions all work well - browsing products, adding to cart, etc... I would expect other functions also use "global" to pass in class objects, don't they?

  9. #19
    Join Date
    Nov 2006
    Posts
    3
    Plugin Contributions
    0

    Default Re: php 5.2.0 update problem

    My clients on my server also have the same issue... There seems to be a issue with ZenCart and php-5.2. In order to correct the issue I had to roll back php to 5.1.6.

    Any Idea when a fix/patch will be released?

  10. #20
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: php 5.2.0 update problem

    If one of you is interested in providing me with FTP+admin access to your PHP 5.2.0 server, I'll be happy to debug and come up with a solution.

    PM me with details and I'll look at it this evening ...
    .

    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.

 

 
Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. v153 myDEBUG: after update to php 5.4.31
    By RixStix in forum Bug Reports
    Replies: 2
    Last Post: 22 Aug 2014, 04:47 PM
  2. v151 Update to PHP 5.4
    By GabyWalker in forum Basic Configuration
    Replies: 8
    Last Post: 16 May 2014, 10:45 PM
  3. my english.php won't update?
    By blind1 in forum Basic Configuration
    Replies: 4
    Last Post: 23 Dec 2008, 12:41 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR