{"id":1940,"date":"2010-12-10T14:17:20","date_gmt":"2010-12-10T14:17:20","guid":{"rendered":"http:\/\/www.icocean.com\/blog\/?p=1940"},"modified":"2010-12-10T19:11:39","modified_gmt":"2010-12-10T19:11:39","slug":"%E6%9D%AF%E5%85%B7%E7%9A%84zendoptimizer","status":"publish","type":"post","link":"https:\/\/www.icocean.com\/blog\/?p=1940","title":{"rendered":"\u676f\u5177\u7684Zend optimizer"},"content":{"rendered":"<p>\u968f\u7740php\u7684\u7248\u672c\u7684\u5347\u7ea7,ubuntu\u4e0a\u9ed8\u8ba4\u5b89\u88c5\u7684php\u7248\u672c\u4e5f\u4ecephp5.2.x\u5347\u7ea7\u5230\u4e86php5.3.x. \u670d\u52a1\u5668\u4e0a\u7684\u4e00\u4e9bphp\u7a0b\u5e8f\u4e5f\u662f\u88ab\u5f00\u53d1\u5546\u7528zend\u7684\u65e9\u671f\u7248\u672c\u52a0\u5bc6\u8fc7\u7684, \u4f46\u662fzend\u5b98\u65b9\u81f3\u4eca\u4ecd\u7136\u6ca1\u6709\u63d0\u4f9bzend optimizer\u7684\u652f\u6301php5.3\u540c\u65f6\u517c\u5bb9php5.2\u7684\u7248\u672c.<\/p>\n<p>\u4e3a\u4ec0\u4e48\u8fdf\u8fdf\u65e0\u6cd5\u63a8\u51fa\u652f\u6301php5.3\u7684zend optimizer\u5462?<br \/>\u5728zend\u7684\u5b98\u65b9\u8bba\u575b\u4e0a,\u5b98\u65b9\u5de5\u4f5c\u4eba\u5458\u57282009\u5e749\u6708\u505a\u4e86\u5982\u4e0b\u56de\u7b54:<\/p>\n<div class=\"quote\">\n<div class=\"quote-title\"><\/div>\n<div class=\"quote-content\">by kentatzend on Tue Sep 15, 2009 6:54 pm <br \/>The problem is that as we looked into this it is simply not just Optimizer that needs to be updated but also Zend Guard. Zend Guard does not support PHP 5.3 and it appear that php 5.2 code that is encoded with Guard will not run properly in Optimizer\/php5.3. So even if we released optimizer it probably would not work.<\/p>\n<p>We need to build a new version of Guard &#038; Optimizer that supports PHP 5.3 and &#8230; then people will need to re-encode\/obfuscate with the new Guard to run on PHP 5.3.<\/p>\n<p>So this is taking some time due to low level incompatibility that end users of PHP would never see but are important for stuff like this. Please bear with us as we update this product.<\/p>\n<p>http:\/\/forums.zend.com\/viewtopic.php?f=57&#038;t=1365#p8770<\/p><\/div>\n<\/div>\n<div class=\"quote\">\n<div class=\"quote-title\"><\/div>\n<div class=\"quote-content\">by kentatzend on Sat Jul 04, 2009 1:54 am<br \/>We plan to release a zend guard and runtime for php 5.3 later this year.<\/div>\n<\/div>\n<p>\u610f\u601d\u662f\u8981\u7ee7\u7eed\u7b49\u5f85,\u7b49\u5f85\u5b98\u65b9\u5f00\u53d1\u51fa\u652f\u6301php5.3\u7684zend guard\u52a0\u5bc6\u90e8\u5206\u7684\u8f6f\u4ef6,\u7136\u540e\u624d\u80fd\u63d0\u4f9b\u89e3\u5bc6\u8fd0\u884c\u7684zend optimizer\u7684\u90e8\u5206.<!--more-->\u5e76\u9884\u8ba12009\u5e74\u5185\u53ef\u4ee5\u53d1\u5e03.<\/p>\n<p>\u597d\u4e0d\u5bb9\u6613\u7b49\u5230\u4e862010\u5e74\u768411\u6708,\u5b98\u65b9\u53d1\u5e03\u4e86\u652f\u6301php5.3\u7684zend guard 5.5(http:\/\/forums.zend.com\/viewtopic.php?f=57&#038;t=8575)<\/p>\n<div class=\"quote\">\n<div class=\"quote-title\"><\/div>\n<div class=\"quote-content\">For PHP 5.2 you use Optimizer for the runtime. For PHP 5.3 you use Guard Loader for the runtime. Loader packages are on that same download page as the new version of Guard.<\/div>\n<\/div>\n<p>\u540c\u65f6\u5b98\u65b9\u4e5f\u505a\u51fa\u4e86\u660e\u786e\u8bf4\u660e: \u8fd9\u4e2a\u652f\u6301php5.3\u7684guard\u4e2d\u7684loader\u5e76\u4e0d\u517c\u5bb9php5.2, \u6240\u6709php5.2\u53ca\u8001\u7248\u672czend\u52a0\u5bc6\u7684php\u7a0b\u5e8f,\u90fd\u9700\u8981\u4f7f\u7528\u65b0\u7248\u7684zend guard for 5.3\u91cd\u65b0\u52a0\u5bc6\u540e,\u624d\u80fd\u5728php5.3\u4e0b\u8fd0\u884c. \u771f\u662fTMD\u8d85\u7ea7\u5927\u676f\u5177!<\/p>\n<div class=\"quote\">\n<div class=\"quote-title\"><\/div>\n<div class=\"quote-content\">by kentatzend on Thu Oct 21, 2010 11:49 pm<br \/>The Guard run-time for PHP 5.3 will not run PHP 5.2 encoded files. The source files must be re-encoded to run in 5.3.<\/p>\n<p>http:\/\/forums.zend.com\/viewtopic.php?f=57&#038;t=6639&#038;start=60#p27711<\/p><\/div>\n<\/div>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u968f\u7740php\u7684\u7248\u672c\u7684\u5347\u7ea7,ubuntu\u4e0a\u9ed8\u8ba4\u5b89\u88c5\u7684php\u7248\u672c\u4e5f\u4ecephp5.2.x\u5347\u7ea7\u5230\u4e86php5.3.x. \u670d\u52a1 <a href='https:\/\/www.icocean.com\/blog\/?p=1940' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[3113,3110,3112,3111,404,3061],"class_list":["post-1940","post","type-post","status-publish","format-standard","hentry","category-4","tag-3113","tag-3110","tag-guard","tag-optimizer","tag-php","tag-zend","category-4-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1940"}],"version-history":[{"count":0,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1940\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}