{"id":1198,"date":"2016-03-11T18:00:49","date_gmt":"2016-03-11T10:00:49","guid":{"rendered":"http:\/\/127.0.0.1\/china029\/?p=1198"},"modified":"2016-03-11T18:00:49","modified_gmt":"2016-03-11T10:00:49","slug":"phpweb%e7%bd%91%e7%ab%99%e5%90%8e%e5%8f%b0%e6%8a%a5%e9%94%99fatal-error-the-encoded-file-has-format-major-id-1","status":"publish","type":"post","link":"https:\/\/wp.china029.com\/index.php\/2016\/03\/11\/phpweb%e7%bd%91%e7%ab%99%e5%90%8e%e5%8f%b0%e6%8a%a5%e9%94%99fatal-error-the-encoded-file-has-format-major-id-1\/","title":{"rendered":"PHPWEB\u7f51\u7ad9\u540e\u53f0\u62a5\u9519Fatal error: The encoded file has format major ID 1"},"content":{"rendered":"<p>\u89e3\u51b3phpweb\u7f51\u7ad9\u9875\u9762\u51fa\u73b0<b>Fatal error<\/b>: Incompatible file format: The encoded file has format major ID 1\u7684\u95ee\u9898<\/p>\n<p>phpweb\u7684\u6587\u4ef6\u662f\u7ecf\u8fc7zend\u52a0\u5bc6\u7684\uff0c\u5c06\u5b83\u653e\u5230\u4e3b\u673a\u7a7a\u95f4\u4e0a\u8fd0\u884c\u7684\u65f6\u5019\u906d\u9047\u5982\u4e0b\u95ee\u9898\uff1a<strong>Fatal error: Incompatible file format: The encoded file has format major ID 3\uff08\u6216\u80051\uff09, whereas the Loader expects 4 in<\/strong><\/p>\n<p>\u5b98\u65b9\u901a\u77e5\u5982\u4e0b\uff1a<\/p>\n<p><strong>[\u5b89\u88c5\u73af\u5883\u8981\u6c42] <\/strong><br \/>\n\u865a\u62df\u4e3b\u673a\u6216\u5728\u81ea\u5907\u670d\u52a1\u5668\u4e2d\u5f00\u8bbe\u597d\u7684\u4e3b\u673a\u7a7a\u95f4\uff0c\u4e3b\u673a\u73af\u5883\u8981\u6c42\uff1a<br \/>\nPHP4.3.x-5.2.x\/\u975e\u5b89\u5168\u6a21\u5f0f\/\u5141\u8bb8WEB\u6587\u4ef6\u4e0a\u4f20<br \/>\nMYSQL4.2-5.x<br \/>\nzend optimizer 3.2\u4ee5\u4e0a<\/p>\n<p><strong>? ? ? 1\u3001php5.3\u4ee5\u4e0a\u7248\u672c\u65e0\u6cd5\u52a0\u8f7dzend optimizer\uff0c\u6682\u4e0d\u652f\u6301<\/strong><br \/>\n<strong>? ? ? 2\u3001\u7b2c\u4e09\u65b9\u5e94\u7528\u5b89\u88c5\u9700\u8981php5.2\u7248\u672c\uff0c\u4f4e\u4e8e\u6b64\u7248\u672c\u4e0d\u80fd\u5b89\u88c5\u7b2c\u4e09\u65b9\u5e94\u7528\uff0c\u4f46\u4e0d\u5f71\u54cdPHPWEB\u672c\u8eab\u7684\u8fd0\u884c<\/strong><\/p>\n<p>\u6c47\u603b\u8be5\u95ee\u9898\u76f8\u5173\u4fe1\u606f\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u4ecePHP5.3\u5f00\u59cb\u5982\u679c\u8981\u652f\u6301zendguard\u52a0\u5bc6\u7684PHP\u4ee3\u7801\uff0c\u5fc5\u987b\u5b89\u88c5zend guard loader\uff0c\u8001\u7684zend optimizer\u5c06\u4e0d\u88ab\u652f\u6301\u3002<\/li>\n<li>PHP5.2\u4e4b\u524d\u7684Zend\u52a0\u5bc6\u7a0b\u5e8f\u7528Zend Optimizer\u89e3\u6790\u3002<\/li>\n<li>PHP5.3\u5f00\u59cb\u7684Zend\u52a0\u5bc6\u7a0b\u5e8f\u7528Zend Guard Loader\u89e3\u6790\u3002<\/li>\n<\/ol>\n<p>\u7efc\u4e0a\uff0c\u9020\u6210\u8be5\u95ee\u9898\u7684\u539f\u56e0\u662f<strong>Zend Guard 5.1\u66f4\u65b0\u4e86\u52a0\u5bc6PHP\u6587\u4ef6\u7684\u7b97\u6cd5\u6765\u8fce\u5408PHP5.3\u65b0\u7248\u672c\u652f\u6301\uff0c\u7528Zend Guard\u8001\u7248\u672c\u52a0\u5bc6\u8fc7\u7684PHP\u6587\u4ef6\u5728 PHP5.3?+ Zend Guard Loader\u7684\u73af\u5883\u4e0b\u90fd\u65e0\u6cd5\u6b63\u5e38\u6d4f\u89c8<\/strong>\uff0c\u4f1a\u62a5\u51fa\u6587\u7ae0\u5f00\u5934\u7684\u9519\u8bef\u3002<\/p>\n<p><span style=\"color: #ff6600; font-size: 12pt;\"><strong>\u6839\u636e\u5b98\u65b9\u5efa\u8bae\uff0cphpweb\u7cfb\u7edf\u6700\u597d\u4f7f\u7528php5.2\u7684\u7248\u672c\uff01<\/strong><\/span><\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n<ul>\n<li>\u53ef\u4ee5\u628aPHP\u7a0b\u5e8f\u6e90\u6587\u4ef6\u5728Zend Guard 5.1\u4e0b\u91cd\u65b0\u52a0\u5bc6\uff0c\u7136\u540e\u624d\u80fd\u6d4f\u89c8\u3002\u672c\u5904\u56e0\u4e3a\u62ff\u5230\u7684\u5c31\u662f\u52a0\u5bc6\u5546\u4e1a\u4ee3\u7801\uff0c\u6545\u653e\u5f03\u8fd9\u4e00\u62db\u3002<\/li>\n<li>\u4e5f\u53ef\u4ee5\u628a\u7a0b\u5e8f\u653e\u5230PHP5.2 + Zend Optimizer\u7684\u73af\u5883\u4e0b\u8fd0\u884c\u5373\u53ef\u3002\u672c\u5904\u9009\u62e9\u5b83\u6765\u8fd0\u884c\u8fd9\u5957\u52a0\u5bc6\u7a0b\u5e8f\u3002<\/li>\n<\/ul>\n<p>\u628a\u7a7a\u95f4\u642c\u8fc1\u5230\u4e86\u4f4e\u7248\u672cPHP\u7684\u73af\u5883\u4e0b\uff0c\u641e\u5b9a\u3002\u6458\u5f55\u524d\u540e\u4e3b\u673aPHP\u73af\u5883\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>\u642c\u8fc1\u524d\uff1aPHP5.3.17 +?Zend Engine v2.3.0 + Zend Guard Loader v3.3<\/li>\n<li>\u642c\u8fc1\u540e\uff1aPHP5.2.17 +?Zend Engine v2.2.0 + Zend Optimizer v3.3.9<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u51b3phpweb\u7f51\u7ad9\u9875\u9762\u51fa\u73b0Fatal error: Incompatible file format: The encoded file has format major ID 1\u7684\u95ee\u9898 phpweb\u7684\u6587\u4ef6\u662f\u7ecf\u8fc7zend\u52a0\u5bc6\u7684\uff0c\u5c06\u5b83\u653e\u5230\u4e3b [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-1198","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/wp.china029.com\/index.php\/wp-json\/wp\/v2\/posts\/1198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.china029.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.china029.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.china029.com\/index.php\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.china029.com\/index.php\/wp-json\/wp\/v2\/comments?post=1198"}],"version-history":[{"count":1,"href":"https:\/\/wp.china029.com\/index.php\/wp-json\/wp\/v2\/posts\/1198\/revisions"}],"predecessor-version":[{"id":1199,"href":"https:\/\/wp.china029.com\/index.php\/wp-json\/wp\/v2\/posts\/1198\/revisions\/1199"}],"wp:attachment":[{"href":"https:\/\/wp.china029.com\/index.php\/wp-json\/wp\/v2\/media?parent=1198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.china029.com\/index.php\/wp-json\/wp\/v2\/categories?post=1198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.china029.com\/index.php\/wp-json\/wp\/v2\/tags?post=1198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}