Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2006
    Location
    Japan
    Posts
    56
    Plugin Contributions
    0

    Default [BUG][install] Php Version Check

    My PHP version is "PHP 4.3.10-16" (package from a standard Debian Sarge)

    But the installer does not recognize this patern (a.b.c-d) as valid:
    PHP Version = 4.3.10-16 {You should consider upgrading!}
    I modified the file "zc_install/includes/modules/pages/inspect/header_php.php", line 216 to 222, from
    Code:
    if (phpversion()=="4.1.2") { $php_ver = "<span class='errors'>".phpversion().' {'. SHOULD_UPGRADE . '}</span>'; $err_text = ERROR_TEXT_4_1_2; $err_code = ERROR_CODE_4_1_2; $zc_install->setError($err_text, $err_code, true); $this_class = 'WARN'; } elseif (phpversion() < "4.3.2" && phpversion() != "4.3.11" && phpversion() != "4.3.10") {
    to
    Code:
    $phpver = explode('-', phpversion()); $phpver = $phpver[0]; if ($phpver=="4.1.2") { $php_ver = "<span class='errors'>".phpversion().' {'. SHOULD_UPGRADE . '}</span>'; $err_text = ERROR_TEXT_4_1_2; $err_code = ERROR_CODE_4_1_2; $zc_install->setError($err_text, $err_code, true); $this_class = 'WARN'; } elseif ($phpver < "4.3.2" && $phpver != "4.3.11" && $phpver != "4.3.10") {

  2. #2
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: [BUG][install] Php Version Check

    This was already reported a couple of times in the past in the forum since v1.3 of Zen Cart was released. You might try using the forum's search engine on this subject. Only a few results could be returned to you but, these, should all contain bugfixes. ;)

  3. #3
    Join Date
    Mar 2006
    Location
    Japan
    Posts
    56
    Plugin Contributions
    0

    Default Re: [BUG][install] Php Version Check


    Thanks!

    So, so far, DrByte is working on this bug. Good news :-)
    http://www.zen-cart.com/forum/showthread.php?t=34089#5
    I'm working on an alternative which does similar to what the PHP function claims it does, and then just drop anything non-numeric or maybe just take the first X number of characters for comparison after converting to forced-length numbers/strings etc. So far this approach seems to be much more reliable and cross-platform compatible.

  4. #4
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: [BUG][install] Php Version Check

    Glad you found the answer to what you were looking for from the forum's search engine. ;)

 

 

Similar Threads

  1. cant install due to php version check
    By bigduffeye in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 18 Apr 2013, 10:59 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