theKingOfTerrors
V2EX  ›  PHP

Incompatible file format: The encoded file has format major ID 5, whereas the Loader expects 7

  •  
  •   theKingOfTerrors · Nov 16, 2015 · 6534 views
    This topic created in 4019 days ago, the information mentioned may be changed or developed.

    解决了 Zend Guard Run-time support missing 的问题后,刷新页面,出现了
    Incompatible file format: The encoded file has format major ID 5, whereas the Loader expects 7 /home/www/PigCms/Lib/ORG/Susceptible.class.php 第 0 行.
    错误位置
    FILE: /home/www/Lib/Core/Think.class.php   LINE: 246
    TRACE
    [15-11-16 11:43:11] /home/www/Lib/Core/Think.class.php (246) halt(Incompatible file format: The encoded file has format major ID 5, whereas the Loader expects 7 /home/www/PigCms/Lib/ORG/Susceptible.class.php 第 0 行.)
    [15-11-16 11:43:11] /home/www/Lib/Core/Think.class.php (261) Think::appError(1, Incompatible file format: The encoded file has format major ID 5, whereas the Loader expects 7, /home/www/PigCms/Lib/ORG/Susceptible.class.php, 0)
    15-11-16 11:43:11 Think::fatalError()
    ,这个问题应该怎么解决,我的 PHP 版本是 5.6 ,安装的 ZendGuardLoader 的版本也是 64 位支持 php5.6 的

    4 replies  •  2015-11-18 10:29:14 +08:00
    freezex
    freezex
    Nov 16, 2015 via Android
    1
    加解密的版本不兼容,要么用 zendguard7 重新加密一遍,要么换低版本的 loader(这个估计需要 php 降级)
    theKingOfTerrors
    theKingOfTerrors
    OP
    Nov 16, 2015
    2
    @freezex 那我怎么查看当前加密的版本?
    freezex
    freezex
    Nov 16, 2015
    3
    major ID 就是了

    之前碰到过一次,我的加密版本更低,因为是买的,对方也提供不了高版本的加密,最后不得以把 PHP 降到 5.2 才搞定

    你这个 ID5 的我查了一下估计是要降到 5.4
    http://forums.zend.com/viewtopic.php?f=57&t=116408
    theKingOfTerrors
    theKingOfTerrors
    OP
    Nov 18, 2015
    4
    @freezex 嗯,好的,谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4375 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 01:11 · PVG 09:11 · LAX 17:11 · JFK 20:11
    ♥ Do have faith in what you're doing.