 {"id":476,"date":"2012-10-24T09:00:24","date_gmt":"2012-10-24T01:00:24","guid":{"rendered":"http:\/\/www.qyuef.com\/?p=476"},"modified":"2012-10-24T09:00:24","modified_gmt":"2012-10-24T01:00:24","slug":"dedecms%e5%ae%8c%e7%be%8e%e5%ae%9e%e7%8e%b0%e5%9c%a8php5-4%e4%b8%8a%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"http:\/\/www.qyuef.com\/?p=476","title":{"rendered":"DedeCMS\u5b8c\u7f8e\u5b9e\u73b0\u5728PHP5.4\u4e0a\u8fd0\u884c"},"content":{"rendered":"<p><span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">\u5728Ubuntu Server 12.10\u4e2d\u6d4b\u8bd5\u5b89\u88c5DedeCMS\uff0c\u53d1\u73b0Ubuntu\u4e2d\u9ed8\u8ba4\u96c6\u6210\u7684\u662fPHP5.4.6\u7248\u672c\u4e86\uff0c\u5728\u5b89\u88c5DedeCMS\u8fc7\u7a0b\u4e2d\u53d1\u73b0\u4e24\u4e2a\u5c0f\u95ee\u9898\uff1a<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">1.\u7cfb\u7edf\u9ed8\u8ba4\u6ca1\u6709GD\u5e93\uff1b<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">2.\u7a0b\u5e8f\u65e0\u6cd5\u6b63\u5e38\u767b\u5f55\uff1b<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">\u6211\u4eec\u53ea\u9700\u8981\u7b80\u5355\u7684\u4e24\u4e2a\u6b65\u9aa4\u5373\u53ef\u5b9e\u73b0Ubuntu Server 12.10\u4e2d\u5b8c\u7f8e\u8fd0\u884cDedeCMS 5.7SP1<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">\u5b89\u88c5PHP\u7684GD\u5e93\uff0c\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\uff1a<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">sudo apt-get install php5-gd<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">\u786e\u5b9a\u540e\u7cfb\u7edf\u5c31\u5b8c\u6210\u5b89\u88c5\u3002<\/span><br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<br style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \" \/><br \/>\n\t<span style=\"color: rgb(51, 51, 51); font-family: Arial; font-size: 14px; line-height: 21px; \">\u65e0\u6cd5\u6b63\u5e38\u767b\u5f55\uff0c\u5c06\u4e0b\u9762\u4ee3\u7801\u7c98\u8d34\u5230\/include\/helpers\/util.helper.php\u4e2d:<\/span><\/p>\n<p>&nbsp;<\/p>\n<pre escaped=\"true\" lang=\"php\" line=\"1\">\/\/ Fix for removed Session functions \n\nfunction fix_session_register(){ \n\n    function session_register(){ \n\n        $args = func_get_args(); \n\n        foreach ($args as $key){ \n\n            $_SESSION[$key]=$GLOBALS[$key]; \n\n        } \n\n    } \n\n    function session_is_registered($key){ \n\n        return isset($_SESSION[$key]); \n\n    } \n\n    function session_unregister($key){ \n\n        unset($_SESSION[$key]); \n\n    } \n\n} \n\nif (!function_exists(&#39;session_register&#39;)) fix_session_register();<\/pre>\n<p>\u8fd9\u6837\uff0c\u5c31\u53ef\u4ee5\u8ba9DedeCMS\u5728PHP5.4\u73af\u5883\u4e2d\u8fd0\u884c\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728Ubuntu Server 12.10\u4e2d\u6d4b\u8bd5\u5b89\u88c5DedeCMS\uff0c\u53d1\u73b0Ubuntu\u4e2d\u9ed8\u8ba4\u96c6\u6210\u7684\u662fPHP5.4.6\u7248\u672c\u4e86\uff0c\u5728\u5b89\u88c5DedeCMS\u8fc7\u7a0b\u4e2d\u53d1\u73b0\u4e24\u4e2a\u5c0f\u95ee\u9898\uff1a<br \/>\n1.\u7cfb\u7edf\u9ed8\u8ba4\u6ca1\u6709GD\u5e93\uff1b<br \/>\n2.\u7a0b\u5e8f\u65e0\u6cd5\u6b63\u5e38\u767b\u5f55\uff1b<br \/>\n\u6211\u4eec\u53ea\u9700\u8981\u7b80\u5355\u7684\u4e24\u4e2a\u6b65\u9aa4\u5373\u53ef\u5b9e\u73b0Ubuntu Server 12.10\u4e2d\u5b8c\u7f8e\u8fd0\u884cDedeCMS 5.7SP1<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[],"tcat":[],"_links":{"self":[{"href":"http:\/\/www.qyuef.com\/index.php?rest_route=\/wp\/v2\/posts\/476"}],"collection":[{"href":"http:\/\/www.qyuef.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.qyuef.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.qyuef.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.qyuef.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=476"}],"version-history":[{"count":0,"href":"http:\/\/www.qyuef.com\/index.php?rest_route=\/wp\/v2\/posts\/476\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.qyuef.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.qyuef.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=476"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.qyuef.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=476"},{"taxonomy":"tcat","embeddable":true,"href":"http:\/\/www.qyuef.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftcat&post=476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}